Andrey Morozov
Andrey Morozov

Reputation: 7979

Microsoft Dynamics CRM 2011: how to retrieve dashboard owners?

It is possible to retrieve (somehow) dashboard owners from Advanced Find (UI) or database or maybe through API?

Upvotes: 2

Views: 2107

Answers (2)

If you want to query the database instead, you can do so by querying the view called "Userform". The name of the dasboard is in the name column.

Best Regards

Stig

Upvotes: 4

Rodrigo Correia
Rodrigo Correia

Reputation: 66

By code using API:

QueryExpression q = new QueryExpression(UserForm.EntityLogicalName);
        FilterExpression f = new FilterExpression(LogicalOperator.And);
        ConditionExpression c = new ConditionExpression("name", ConditionOperator.Equal, dashboardName);
        f.AddCondition(c);
        q.ColumnSet = new ColumnSet("ownerid");
        q.Criteria = f;

        EntityCollection ec = service.RetrieveMultiple(q);

It's not possible using Advanced Find.

Upvotes: 2

Related Questions