Hi everyone,
I have created a ribbon button to change the regardingobjectId of the emails from one duplicate case to another. I am using the XRMServiceToolkit to perform an update on the regarding field. Code Below:
var updateEmail = new XrmServiceToolkit.Soap.BusinessEntity("email", duplicateActivityList[s].attributes["activityid"].value);
updateEmail.attributes["regardingobjectid"] = { value: originalCase.attributes["incidentid"].value, type: "EntityReference" };
var updateResponse = XrmServiceToolkit.Soap.Update(updateEmail);
The update works fine when I tested it on other fields. Any ideas please?
Thanks
Darren Mercieca