Hello,
I have an entity A and a related entity B. The relationship is 1:N b/w A and B.
Plugin is run when update message is triggered for object of entity A. Now, i need to add some objects of entity type B and attach them to the object of entity A.
Guid entityBid = setup.serviceUser.Create(objectB); relations.Add(new EntityReference(A.EntityLogicalName, entityBid)); var relationship = new Relationship("relation_name"); setup.serviceUser.Associate("A_name", objectA.Id, relationship, relations);
*This post is locked for comments