I am trying to return in code a list of particular entities that are shared with a team. In particular the shared views (userquery entity) objects that are being shared?
Any pointers would be appreciated.
I am trying to return in code a list of particular entities that are shared with a team. In particular the shared views (userquery entity) objects that are being shared?
Any pointers would be appreciated.
This is what I ended up using:
RetrievePrincipalAccessRequest shareAccessRequest = new RetrievePrincipalAccessRequest
{
Principal = new EntityReference("team", myTeam.Id),
Target = new EntityReference("userquery", uvEntity.Id)
};
var shareAccess = (RetrievePrincipalAccessResponse)this.crmConnection.OrgServiceProxy.Execute(shareAccessRequest);
However the access rights that are returned are always none despite the view being shared with the team. I am not sure why?