Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search API 2.0 entities type issue #174

Open
membla opened this issue Jul 8, 2024 · 2 comments
Open

Search API 2.0 entities type issue #174

membla opened this issue Jul 8, 2024 · 2 comments
Assignees

Comments

@membla
Copy link

membla commented Jul 8, 2024

DynamicsWebApi version
For example: v2.1.4

Describe the bug
The SearchQueryBase interface defines entities as an array of strings:

entities?: string[];

But the Search API seems to expect this to be an escaped string as described here.

I'm very new to consuming the Dynamics API so may well be missing something but I could not get the search() method to not throw an error without using an escaped string for entities.

@AleksandrRogov
Copy link
Owner

hi @membla,
Thank you for submitting this issue.
I will need to make some changes in the library to make it work with the search api 2.0, currently the library does not support it.

@AleksandrRogov
Copy link
Owner

hi @membla,

It looks like it's going to take me some time to implement it. They have quite a bit of changes in Search API 2.0 and I need to figure out what is the best way to implement those changes and not to break the legacy implementation.

You could use corresponding actions for now: such as searchquery.

Here's the link to documentation on how to execute actions in DynamicsWebApi.

Let me know if you need help with it.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants