Hi I'm trying to update just the name of a contact in our Online CRM using the REST Endpoint with PHP.
What I have for my request is:
<s:Body>
<Update xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" >
<entity xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<b:Attributes xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<b:KeyValuePairOfstringanyType>
<c:key>firstname</c:key>
<c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">brad</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>af51b8f8-9695-e311-9e7c-6c3be5bd2bf8</b:Id>
<b:LogicalName>contact</b:LogicalName>
<b:RelatedEntities xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
</entity>
</Update >
</s:Body>
If anyone can tell me what i'm doing wrong or steer me in the right direction that would be great.
Thank you.