Hi all, I have N:N relationship between new custom entity and Contact
I am running below code, when run it from my localhost it create relationship between two records but not when it published and run as a different user. I am a administrative user so i think there should be some privilege issue.
I have given read write and append privilege for this new user on both entities
OrganizationServiceProxy service = get_org_service(); //add new permission AssociateRequest req = new AssociateRequest { Target = new EntityReference(new_myicpermission.EntityLogicalName, new Guid(uniqeue_id)), RelatedEntities = new EntityReferenceCollection { new EntityReference(Contact.EntityLogicalName, new Guid(contactid)) }, Relationship = new Relationship("new_contact_myicpermission") }; service.Execute(req);
could anyone can help me to resolve this please?
*This post is locked for comments