簡體   English   中英

PHP 無法在 Dynamics CRM 2013 上為查找字段設置空值

[英]PHP Unable to set empty value to lookup field on Dynamics CRM 2013

我正在使用 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] 格式化程序在嘗試反序列化消息時拋出異常

我在這里做錯了什么?

2011年好像真的很老了。 請改為檢查以下工具包 - https://github.com/AlexaCRM/php-crm-toolkit我很確定它是最新的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM