简体   繁体   English

肥皂请求更新Microsoft Dynamics 365 CRM中的多个记录

[英]Soap request to update multiple records in Microsoft Dynamics 365 CRM

We are trying to update multiple records at once in CRM, but based on the wsdl there is no direct method to do this. 我们正在尝试一次更新CRM中的多个记录,但是基于wsdl,没有直接的方法可以做到这一点。 One approach is to update each record in the CRM by passing the CRM id of the record to be updated. 一种方法是通过传递要更新的记录的CRM ID来更新CRM中的每个记录。 However from reading the documentation, we found that there is a way to run ExecuteMultiple but unsure of how the SOAP request body would look like. 但是,通过阅读文档,我们发现有一种方法可以运行ExecuteMultiple,但不确定SOAP请求主体的外观。 The reason we need the SOAP request structure is because we are constructing the request in our PHP environment. 我们需要SOAP请求结构的原因是因为我们正在PHP环境中构造请求。 All the documentation gives us C# code, can you please suggest the best approach to this problem? 所有文档都提供了C#代码,能否请您提出解决此问题的最佳方法?

Unfortunately there isn't a way to do updates in Dynamics that affect multiple records at once like the UPDATE command in SQL. 不幸的是,无法像在SQL中的UPDATE命令那样在Dynamics中进行一次会同时影响多个记录的更新。 Every update or delete or create request works on a single record. 每个更新,删除或创建请求都作用于单个记录。

However, you can batch these requests together into one web request by using the Batch Operations feature. 但是,您可以使用“批处理操作”功能将这些请求一起批处理为一个Web请求。 Batch operations lets you group normal create/update/delete messages (or any of the other SDK messages) into a single web request. 批处理操作使您可以将正常的创建/更新/删除消息(或任何其他SDK消息)分组到单个Web请求中。

See documentation here: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/execute-batch-operations-using-web-api 请参阅此处的文档: https : //docs.microsoft.com/zh-cn/dynamics365/customer-engagement/developer/webapi/execute-batch-operations-using-web-api

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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