Thursday, October 15, 2020

Share CDS record to a owner team or AAD team in Power Automate

Recently I needed to share a CDS record with a team So here is how you can achieve this with flow Use the Unbound action
Use Grant Access as Action Provide the record id that has to be shared
In the principal access you need to provide the json for share Below is a sample json. This Json is used to share a Owner team with read access. { "Principal": { "teamid": "@{first(variables('OwnersTeam'))}", "@odata.type": "Microsoft.Dynamics.CRM.team" }, "AccessMask": "ReadAccess" }