2

SSRS2008でFetchXMLを使用してCRM2011からレポートを作成しています。レポートにパラメーターを含めて、開始日から終了日までのレコードを表示できるようにします。これは私がこれまでに持っているクエリです。

<fetch>
      <entity name="appointment">
        <attribute name="scheduledstart" />
        <link-entity name="systemuser" from="systemuserid" to="ownerid">
            <attribute name="firstname" alias="ownerFirstName" />
            <attribute name="lastname" alias="ownerLastName" />
        </link-entity>
        <link-entity name="contact" from="contactid" to="new_contactperson">
            <attribute name="parentcustomerid" alias="parentaccount" />
            <attribute name="new_businessunit" alias="businessunit" />
        </link-entity>
        <attribute name="new_contactperson" />
        <attribute name="subject" />
        <attribute name="new_coldernotes" />
    <link-entity name="activityparty" from="activityid" to="activityid">
    <attribute name="participationtypemask" alias="participationtypemask" />
        <filter>
        <condition attribute="participationtypemask" operator="eq" value="9" />
        </filter>
        <link-entity name="systemuser" from="systemuserid" to="partyid">
            <attribute name="fullname" />
        </link-entity>
    </link-entity>
    <order attribute="scheduledstart" descending="true" />
      </entity>
</fetch>

日付間でフィルタリングできるようにするにはどうすればよいですか?

ありがとう!

4

1 に答える 1

5

ネイティブCRMクライアントにアクセスできるかどうかはわかりませんが、高度な検索ビューで次のサンプルFetchXMLがすばやく生成されます。

<filter type="and">
  <condition attribute="modifiedon" operator="on-or-after" value="2011-10-04" />
  <condition attribute="modifiedon" operator="on-or-before" value="2011-11-13" />
</filter>
于 2011-11-14T17:06:14.367 に答える