function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott Kay 4Scott Kay 4 

More than 2000 records

Hi,
I am trying to interface my windows form applciation to Salesforce using the Salesforce Toolkits for .NET. When I query the object (table) I am interested in using the QueryAsync method I get back 2,000 records. I can see from your documentation that there is a QueryMore method but do not see anything like that in the .net toolkit. How can I get the rest of the records?

Thanks,
Scott Kay
Best Answer chosen by Scott Kay 4
Scott Kay 4Scott Kay 4
That does the trick!
Thanks for your help Amit

All Answers

AMIT KAMBOJAMIT KAMBOJ

Hi Scott

You need to use QueryContinuationAsync method using nextRecordsUrl. Look at the code between line 60 to 90 in below github URL to get the idea on this

https://github.com/developerforce/Force.com-Toolkit-for-NET/blob/master/samples/SimpleConsole/Program.cs

Also some info here : https://developer.salesforce.com/blogs/developer-relations/2014/10/nothing-but-dotnet-querying-objects-new-force-com-toolkit-net.html

Please mark this as solution if this resolves your issue.

Thanks
Amit

 

Scott Kay 4Scott Kay 4
That does the trick!
Thanks for your help Amit
This was selected as the best answer