ここでは、VS2012を使用してCRM 2016のFetchXMLレポートを作成しようとしています(Create a new report using SQL Server Data Tools)。私は単純に2つの日付の間に作成されたケースの数を見つける必要があります。FetchXMLレポートの集計数
ダウンロードしたFetchXMLをCRMの高度な検索プロセスからコピー/貼り付けする方法について説明しています。高度な検索処理によって生成さ
FetchXMLは(ticketnumberで)すべてのケースを一覧表示します
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="ticketnumber" />
<order attribute="ticketnumber" descending="false" />
<filter type="and">
<filter type="and">
<condition attribute="createdon" operator="on-or-after" value="2015-07-01" />
<condition attribute="createdon" operator="on-or-before" value="2016-06-30" />
</filter>
</filter>
</entity>
</fetch>
私は高度な検索と集計する方法を見つけることができませんが、ここで命令が
:Use FetchXML aggregationはカップルを示しているように見えますXMLへの属性変更がすべて必要です。
だから、私はメモ帳+ +で私のFetchXMLを変更:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" aggregate="true" > <entity name="incident"> <attribute name="incidentid" /> <attribute name="ticketnumber" aggregate="count" alias="casecount" /> <order attribute="ticketnumber" descending="false" /> <filter type="and"> <filter type="and"> <condition attribute="createdon" operator="on-or-after" value="2015-07-01" /> <condition attribute="createdon" operator="on-or-before" value="2016-06-30" /> </filter> </filter> </entity> </fetch>
どちらか私が何か間違ったこと、またはFetchXML集約ページが正しくないことです。
2つの日付間に開いたケースをカウントするfetchXMLレポートの作成方法を教えてもらえますか?
ありがとうございます。私がVSでレポートを再作成したら、これは仕事をしました。私はincidentidがどのように選ばれたのか分からない、私は先進的な発見を使用し、それは私にそれらのフィールドを与えた。 – mcalex