I've written a plugin to change or update the value of a lookup field on Merge message. I tried to debug using profiler but I am not able debug it is asking for download log location which I don't have. So I am asking here for your help. Since this plugin is registered on Merge message I am using subordinateId for the guid of the child record and I've used fetch to retrieve the attributes.
EntityCollection ec = service.RetrieveMultiple(new FetchExpression(fetch));
foreach (var item in ec.Entities)
{
item.Attributes["subordinatedId"] = new EntityReference("task", subordinateId);
item.Attributes["new_taskissuephase"] = entityTaskIP;
service.Update(item);
}
ExecuteMultipleResponse multipleResponse = (ExecuteMultipleResponse)service.Execute(multipleRequest);
Where did I go wrong in updating the lookup field? Someone please review. Thanks