Hi,
If I fetch a record for a user I can see the following section:
<b:KeyValuePairOfstringanyType> <c:key>cust_address1country</c:key> <c:value i:type="b:EntityReference"> <b:Id>38bef25b-2d34-e411-80dd-005056a57719</b:Id> <b:LogicalName>cust_country</b:LogicalName> <b:Name>ANDORRA</b:Name> </c:value> </b:KeyValuePairOfstringanyType>
If I try using the same snippet in a CreateRequest then I get the following error:
Element 'schemas.datacontract.org/.../System.Collections.Generic:value' contains
data from a type that maps to the name 'schemas.datacontract.org/.../System.Collections.Generic:EntityReference'.
The deserializer has no knowledge of any type that maps to this name.
Is it correct to add the record this way, or do I need a separate AssociateRequest call to link the country address field to the custom Country entity?
Thanks in advance.
*This post is locked for comments