我需要在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的一个对象,但它在插件类中的位置是什么?我找不到.