Sql4Cds
Sql4Cds copied to clipboard
[Feature Request] : Support delete on principalobjectaccess
Hi,
First, Thanks for you wonderfull tool. I used it very often...
Something that could be usefull for me it's to be able to delete/update principalobjectaccess.
Here some C# code to do the delete :
var entity = ...Get record from principalobjectaccess...
var revokeAccessRequest = new RevokeAccessRequest
{
Revokee = new EntityReference(entity.GetAttributeValue<string>("principaltypecode"), entity.GetAttributeValue<Guid>("principalid")),
Target = new EntityReference(entity.GetAttributeValue<string>("objecttypecode"), entity.GetAttributeValue<Guid>("objectid")),
};
serviceClient.Execute(revokeAccessRequest);
Regards Sybaris