Hello Everyone, i have the following code:
<s:Body><Create 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>name</c:key><c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">Final Test 1</c:value></b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType><c:key>emailaddress1</c:key><c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">test@test.com</c:value></b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType><c:key>address1_city</c:key><c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">location here</c:value></b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType><c:key>telephone1</c:key><c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">11111</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>00000000-0000-0000-0000-000000000000</b:Id><b:LogicalName>account</b:LogicalName><b:RelatedEntities xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/></entity></Create></s:Body>
All these fields are strings and everything is fine so far.
My problem is that i have a Lookup field "primarycontactid" and i need to also add a value to it, i'm a fresher in the CRM in general.
How can i achieve that? Any detailed answers would be really appreciated and thanks to everyone in advance.