var target = {
“accountid”: “ACAAB842-21C7-E811-A96F-000D3A16A41E”,
//put <other record type>id and Guid of record to share here
“@odata.type”: “Microsoft.Dynamics.CRM.account”
//replace account with other record type
};
var principalAccess = {
“Principal”: {
“systemuserid”: “d272654b-57f5-4564-8d0b-36d0d4c426c4”,
//put teamid here and Guid of team if you want to share with team
Continue Reading Andrew Butenko’s Article on their blog
How to share record with user using WebApi – Andrew Butenko’s Blog
Blog Syndicated with Andrew Butenko’s Permission