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

Advanced OData usage using OData\Client::getHttpClient() #61

Open
smartinsight-at opened this issue May 20, 2021 · 1 comment
Open

Advanced OData usage using OData\Client::getHttpClient() #61

smartinsight-at opened this issue May 20, 2021 · 1 comment
Labels
wontfix This will not be worked on

Comments

@smartinsight-at
Copy link

I am trying to identify records that have been deleted in the CRM so I can remove them from our local database.

I think the answer may be in Advanced OData usage using OData\Client::getHttpClient() and accessing access the change tracking feature of Dynamics.

Would anyone have an example code for returning this information from Dynamics using the web-api-toolkit to give me a starting point with calling the odata\client from Alexacrm.

Many Thanks

@georged
Copy link
Contributor

georged commented May 20, 2021

@smartinsight-at if you're looking to use change tracking, you definitely would need to use OData client. As for the OData parameters, well, they are standard OData parameters as documented in OData specs or Web API documentation. The parameters can be passed into getList via options. That includes OData options like $select, $filter, etc as well as Prefer header that would need to include odata.track-changes as documented

At the moment we do not have any samples for advanced OData use but it's well documented elsewhere. This is a good place to start: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/overview

@georged georged added the wontfix This will not be worked on label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants