【问题标题】:PHP Unable to set empty value to lookup field on Dynamics CRM 2013PHP 无法将空值设置为 Dynamics CRM 2013 上的查找字段
【发布时间】:2018-12-19 14:03:48
【问题描述】:

我正在使用 PHP SDK https://github.com/Rocketeer007/php-dynamics-crm-2011 连接 Dynamics CRM 并尝试在查找字段中设置空值但没有成功。以下是 SOAP 请求和响应数据

请求

<?xml version="1.0" encoding="UTF-8"?>
<Update xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <entity>
      <b:Attributes xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
         <b:KeyValuePairOfstringanyType>
            <c:key>key name</c:key>
            <c:value xmlns:d="http://www.w3.org/2001/XMLSchema" i:type="d:string">Test</c:value>
         </b:KeyValuePairOfstringanyType>
         <b:KeyValuePairOfstringanyType>
            <c:key>Entity Name</c:key>
            <c:value i:type="b:EntityReference">
               <b:Id i:nil="true" />
               <b:LogicalName>Lookup Entity Name</b:LogicalName>
               <b:Name i:nil="true" />
            </c:value>
         </b:KeyValuePairOfstringanyType>
      </b:Attributes>
      <b:EntityState i:nil="true" />
      <b:FormattedValues xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <b:Id>guild</b:Id>
      <b:LogicalName>entity name</b:LogicalName>
      <b:RelatedEntities xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
   </entity>
</Update>

回应

未捕获的 SoapFault 异常:[Sender] 格式化程序在尝试反序列化消息时抛出异常

我在这里做错了什么?

【问题讨论】:

    标签: php dynamics-crm


    【解决方案1】:

    2011 年似乎真的很老了。请检查以下工具包 - https://github.com/AlexaCRM/php-crm-toolkit 我很确定它是最新的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多