Power Automate: Share Record using Unbound Action

The post is bit old but still relevant. Need a no code solution to automatically share a record? Use GrantAccess Dataverse unbound action in Power Automate to share a record. Thanks Nishant Rana for re blogging this post.

MG

Sharing Records in CDS/ Dynamics CDS automatically based on a specific action??!!! we used to write Custom Workflow Activity or some kind of plugin to Achieve it which may take some hours to develop deploy and Fix.

Well ! NO CODE 1 Step workflow can achieve this!

  1. By using the Common Data Services ( Current Environment) -> Select Perform Unbound Action

2. Choose Grant Access

3. Now the Target should be  entitylogicalname-plurarl(recordid) or entitylogicalname-plurarl/recordid , record if will be pulled from the Dynamic Contents Property

4. PrincipalAccess which needs to be in JSON format, which will include user or team to which the access will be provided and the Access Mask for the Privilege they will be given.

Principal Access for Team:

{
"Principal:"
{
"teamid":"",
"@@odata.type":"Microsoft.Dynamics.CRM.team"
},
"AccessMask":"ReadAccess"
}

Principal Access for User:

{
"Principal" : 
{
"systemuserid":"@{triggerOutputs()?['body/_createdby_value']}",
"@@odata.type":"Microsoft.Dynamics.CRM.systemuser"
},
"AccessMask":"ReadAccess"
}

Below is the list of…

View original post 99 more words