简体   繁体   中英

How to retrieve all records for an entity in Dynamics CRM 4.0?

Is there a way to retrieve all of the records for a given entity using the Microsoft Dynamics CRM 4.0 SDK? I want the equivalent of:

SELECT foo
FROM new_bar

... where new_bar is the name of the entity.

This seems trivial, but I can't find any examples on how to retrieve all of the records for a given entity.

Because you want to retrieve all the records for a given entity, you need to used the Paging Cookie , otherwise you will get maximum 5000 records.

You can find an example here: http://msdn.microsoft.com/en-us/library/cc151070.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM