Dynamics crm 2011 Dynamics CRM:检索实体的相关实体

Dynamics crm 2011 Dynamics CRM:检索实体的相关实体,dynamics-crm-2011,dynamics-crm,Dynamics Crm 2011,Dynamics Crm,我试图检索现有实体的RelatedEntities集合,但每次它都返回空值。不知道我在这里错过了什么。非常感谢您为检索相关实体提供的任何帮助或其他解决方法。以下是我的代码片段: entityexistingappointment=_service.Retrieve(“appointment”,id,newcolumnset(true)); Console.WriteLine(existingAppointment.RelatedEntities.Count); 要实现使用RollupReques

我试图检索现有实体的RelatedEntities集合,但每次它都返回空值。不知道我在这里错过了什么。非常感谢您为检索相关实体提供的任何帮助或其他解决方法。以下是我的代码片段:

entityexistingappointment=_service.Retrieve(“appointment”,id,newcolumnset(true));
Console.WriteLine(existingAppointment.RelatedEntities.Count);

要实现使用RollupRequest的目的,请参阅更多信息