I am Associating Lead to Custom Entity the OutFile .txt not Generating code But their No Error in this Code
AssociateRequest areq = new AssociateRequest();
//Target is the entity that you are associating your entities to.
areq.Target = new EntityReference("lead", new Guid("bb8f43ac-ea7d-e411-80d7-80c16e644b9a"));
//RelatedEntities are the entities you are associating to your target (can be more than 1)
areq.RelatedEntities = new EntityReferenceCollection();
areq.RelatedEntities.Add(new EntityReference("new_callinglist", new Guid("ff0dedf6-9a80-e411-80d8-80c16e644b9a")));
//The relationship schema name in CRM you are using to associate the entities.
//found in settings - customization - entity - relationships
areq.Relationship = new Relationship("new_lead_new_callinglist");
//execute the request
service.Execute(areq);
*This post is locked for comments
I have the same question (0)