Hi all,
I am recently facing this issue as i am trying to query userform entity to fetch all the personal dashboards of a particular user using below query in my console application.
The problem is that the query is working fine when i am giving the same user credentials for crm to connect to my console application as for the user which i want to retrieve the personal dashboards i.e the ownerid for the owner of personal dashboards but when i am giving the different ownerid for the user to retrieve its dashboards than it is not returning its dashboards. It is returning the entity count as 0.
QueryExpression query = new QueryExpression("userform");
query.ColumnSet.AddColumns("name", "userformid", "ownerid", "type");
query.Criteria.AddCondition("ownerid", ConditionOperator.Equal, "00000-0000-0000-0000-00000000000");
query.Orders.Add(new OrderExpression("name", OrderType.Ascending));
EntityCollection personalDashboardsCollection = _service.RetrieveMultiple(query); // retrieve collection of personal dashboards...
Thanks in advance!! :)
*This post is locked for comments