-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add support for fetchxmlpagingcookie when executing a fetchXML query #49
Comments
Thanks for adding this to the list |
Hi David, |
I really am in need of the paging cookie support :-( |
Hi,
We were finally able to make some changes to source code and achieve this. It at least solved our purpose. I am not sure how to create a fork or I can share the changes as desired.
Regards,
Nikhil
Soluzione IT
From: EkoZuluDev <[email protected]>
Sent: 27 March 2019 13:30
To: davidyack/Xrm.Tools.CRMWebAPI <[email protected]>
Cc: Nikhil Gahlot <[email protected]>; Comment <[email protected]>
Subject: Re: [davidyack/Xrm.Tools.CRMWebAPI] Add support for fetchxmlpagingcookie when executing a fetchXML query (#49)
Is there a way to manually insert the pagingcookie annotation in fetchxml string?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#49 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AWT8YnXkMScE9BPMGpLGS-612rJgQDnIks5vayTngaJpZM4P8sPZ>.
Our company 'Soluzione IT Services Pvt. Ltd.' accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.
|
@SolzIT can you post the key changes here at least until it gets integrated others can take advantage of it |
Sure thing. Here you go. We had made the below changes to the CRMWebAPI.cs file and CRMGetListResult.cs file namely:
For the sake of clarity we have marked the changes by tag SolzIT. To invoke the GetLargeList function /// Get more than 5000 records /// /// Fetch xml /// Entity name /// List of records public async Task GetMoreThen5000Records(string querry, string entityName) { try { //Connect to crm var api = await _crm.GetAPI(); dynamic finalResult = null;
` Reference to the changed cs files is in attached zip. Please note this might not be the latest files as per Xrm.Tools.CRMWebAPI build |
@KhashRastin , I'll be opening a pull request in a couple of days (already coded, going to test a bit more) and submitting the changes for @davidyack to review and merge. @SolzIT , I've looked at your sample and also a sample which Microsoft always provided since 4.0 days, I'm going to slightly modify that and not have the users do the looping, it'll just be a parameter and if you want to get all records, it'll return all records. |
Request support for the annotation Microsoft.Dynamics.CRM.fetchxmlpagingcookie to enable paging for fetchxml queries.
The text was updated successfully, but these errors were encountered: