我正在使用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>
响应
未接收的肥皂福特例外:[发送者]格式化了一个例外,试图逐渐化消息
我在这里做错了什么?
2011似乎真的很旧。相反,请检查以下工具包-https://github.com/alexacrm/php-crm-toolkit,我很确定它是最新的。