小编Ewe*_*ews的帖子

如何在我的插件 - CRM 2011上使用OrganizationServiceProxy?

我需要在CRM插件中使用fetch xml,我在这里找到了一个如何做到这一点的示例:

string groupby1 = @" 
    <fetch distinct='false' mapping='logical' aggregate='true'> 
     <entity name='opportunity'>
      <attribute name='name' alias='opportunity_count' aggregate='countcolumn' />  
      <attribute name='ownerid' alias='ownerid' groupby='true' />
      <attribute name='createdon' alias='createdon' /> 
      <attribute name='customerid' alias='customerid' /> 
     </entity> 
    </fetch>";

    EntityCollection groupby1_result = orgProxy.RetrieveMultiple(new FetchExpression(groupby1));
Run Code Online (Sandbox Code Playgroud)

但是还有一些我不知道如何使用的东西,或者它在哪里使用......它的部分内容如下:

orgProxy.RetrieveMultiple(new FetchExpression(groupby1));
Run Code Online (Sandbox Code Playgroud)

我知道它是OrganizationServiceProxy的一个对象,但它在插件类中的位置是什么?我找不到.

plugins fetchxml dynamics-crm-2011

0
推荐指数
1
解决办法
673
查看次数

标签 统计

dynamics-crm-2011 ×1

fetchxml ×1

plugins ×1