Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How get all related records field "regarding"

$
0
0

Hello.

In CRM 2016 on account is a view with all activities and related records fields "regarding".

How to get this list in SQL or C#:

This code return only 7 records. How get all 42 records?

QueryExpression query = new QueryExpression { EntityName = "activitypointer", ColumnSet = new ColumnSet(new string[] { "activitytypecode" }) };
query.Criteria.AddCondition("regardingobjectid", ConditionOperator.Equal, Guid.Parse("35D2EE25-BE37-E211-AA69-00155D644201"));
EntityCollection collection = service.RetrieveMultiple(query);

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images