Using the ExecuteMultipleRequest Message to Perform Bulk Retrievals from Dynamics 365
Abd-Elmonem Elsherbeny
Microsoft Dynamic CRM & Power platform Manager / Solution Architect | Driving business Growth Through Customer-Centric Solutions
we will go through the steps needed to use the ExecuteMultipleRequest message, in order to perform bulk retrievals from CRM. Using the message ExecuteMultipleRequest is particularly useful in situations when you want to perform multiple queries and avoid making multiple calls to Microsoft Dynamics 365.
Example
1. Build the RetrieveMultipleRequest(s).
2. Add the requests to an OrganizationRequestCollection.
3. Build the ExecuteMultipleRequest.
4. Perform a service call to CRM with the IOrganizationService.
5. Parse the results.
Dynamics 365 send back responses in the same order as the requests were made
Technical Consultant Lead | Dynamics 365 CE/CRM | Power Platform | Digital Transformation
3 年Thanks for sharing this information. I just want to add note about message usage, it is recommended only to use where code is being executed outside of the crm execution pipelines ( plugins & custom workflow ), like integration or migration scenarios.