肥皂请求更新Microsoft Dynamics 365 CRM中的多个记录 [英] Soap request to update multiple records in Microsoft Dynamics 365 CRM

查看:88
本文介绍了肥皂请求更新Microsoft Dynamics 365 CRM中的多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们试图在CRM中一次更新多个记录,但是基于wsdl,没有直接的方法可以做到这一点。一种方法是通过传递要更新的记录的CRM ID来更新CRM中的每个记录。但是,通过阅读文档,我们发现有一种方法可以运行ExecuteMultiple,但不确定SOAP请求主体的外观。我们需要SOAP请求结构的原因是因为我们正在PHP环境中构造请求。所有文档都提供了C#代码,您能否建议解决此问题的最佳方法?

We are trying to update multiple records at once in CRM, but based on the wsdl there is no direct method to do this. One approach is to update each record in the CRM by passing the CRM id of the record to be updated. 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. The reason we need the SOAP request structure is because we are constructing the request in our PHP environment. All the documentation gives us C# code, can you please suggest the best approach to this problem?

推荐答案

不幸的是,没有在Dynamics中执行一次会影响多个记录的更新的方法,例如SQL中的UPDATE命令。每个更新,删除或创建请求都在一条记录上进行。

Unfortunately there isn't a way to do updates in Dynamics that affect multiple records at once like the UPDATE command in SQL. Every update or delete or create request works on a single record.

但是,您可以使用批处理操作功能将这些请求一起批处理成一个Web请求。批处理操作使您可以将正常的创建/更新/删除消息(或任何其他SDK消息)分组为单个Web请求。

However, you can batch these requests together into one web request by using the Batch Operations feature. Batch operations lets you group normal create/update/delete messages (or any of the other SDK messages) into a single web request.

请参见此处的文档: https:// docs。 microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/execute-batch-operations-using-web-api

这篇关于肥皂请求更新Microsoft Dynamics 365 CRM中的多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆