2

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.

bigtv
  • 2,611
  • 5
  • 29
  • 42

1 Answers1

0

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?

Guido Preite
  • 14,905
  • 4
  • 36
  • 65
bigtv
  • 2,611
  • 5
  • 29
  • 42