
We have a plugin on contact and acocunt that in certain situations will disassociate a relation.
However in the PreOperation we want to do soem extra checks depending on the origin of the disassociate call.
I tries to add a SharedVariable that in can read in the Disassociate plugin, but I don't succeed.
As it is between two different entities I know it is not possible to add a variable to the context, but I used the "tag" in the Request.
However still no luck with that.
reference to try with tag:
https://www.itaintboring.com/dynamics-crm/shared-variables-in-dataverse-plugins-surprise-surprise/
Anyone an idea how I can pass some information?
My code
Relationship relationship = new Relationship(relationshipname);
DisassociateRequest request = new DisassociateRequest()
{
RelatedEntities = collection,
Relationship = new Relationship(relationshipname),
Target = new EntityReference(entityName, id),
};
request["tag"] = tag;
this.OrganizationService.Execute(request); Hi binu_pa,
Maybe you can Disassociate records through power automate: