Dynamics crm 2011 FetchXML-今天-减去30天

Dynamics crm 2011 FetchXML-今天-减去30天,dynamics-crm-2011,dynamics-crm,microsoft-dynamics,fetchxml,Dynamics Crm 2011,Dynamics Crm,Microsoft Dynamics,Fetchxml,我正在尝试创建一个FetchXML脚本,用于检索日期为今天减去30天的记录 下面是有效的SQL。有人能帮我处理FetchXML吗 SELECT * FROM [students] WHERE start_date = CONVERT(DATE,DATEADD(DAY,-30,GETDATE())) 提前感谢, RichardFetchXml仅为这个特定问题提供有限的支持 您必须自己计算目标日期,并将其作为筛选值传递: <fetch version="1.0" output-format=

我正在尝试创建一个FetchXML脚本,用于检索日期为今天减去30天的记录

下面是有效的SQL。有人能帮我处理FetchXML吗

SELECT *
FROM [students]
WHERE start_date = CONVERT(DATE,DATEADD(DAY,-30,GETDATE()))
提前感谢,


Richard

FetchXml仅为这个特定问题提供有限的支持

您必须自己计算目标日期,并将其作为筛选值传递:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="createdon" operator="on" value="2015-03-13" />
      </filter>
  </entity>
</fetch>


如果您尚未尝试:请使用高级查找,通过下载生成的FetchXml来探索DateTime属性支持的内置筛选器。

FetchXml仅为该特定问题提供有限的支持

您必须自己计算目标日期,并将其作为筛选值传递:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="createdon" operator="on" value="2015-03-13" />
      </filter>
  </entity>
</fetch>


如果您尚未尝试:请使用高级查找,通过下载生成的FetchXml来探索DateTime属性支持的内置筛选器。

FetchXml仅为该特定问题提供有限的支持

您必须自己计算目标日期,并将其作为筛选值传递:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="createdon" operator="on" value="2015-03-13" />
      </filter>
  </entity>
</fetch>


如果您尚未尝试:请使用高级查找,通过下载生成的FetchXml来探索DateTime属性支持的内置筛选器。

FetchXml仅为该特定问题提供有限的支持

您必须自己计算目标日期,并将其作为筛选值传递:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="createdon" operator="on" value="2015-03-13" />
      </filter>
  </entity>
</fetch>


如果尚未尝试:请使用高级查找,通过下载生成的FetchXml来探索DateTime属性支持的内置筛选器。

FetchXml没有解决此问题的选项

可以使用最后X天和旧X天的组合来实现

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="students">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="start_date" value="30" operator="last-x-days"/>
        <condition attribute="start_date" value="29" operator="olderthan-x-days"/>
      </filter>
  </entity>
</fetch>

FetchXml没有解决此问题的选项

可以使用最后X天和旧X天的组合来实现

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="students">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="start_date" value="30" operator="last-x-days"/>
        <condition attribute="start_date" value="29" operator="olderthan-x-days"/>
      </filter>
  </entity>
</fetch>

FetchXml没有解决此问题的选项

可以使用最后X天和旧X天的组合来实现

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="students">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="start_date" value="30" operator="last-x-days"/>
        <condition attribute="start_date" value="29" operator="olderthan-x-days"/>
      </filter>
  </entity>
</fetch>

FetchXml没有解决此问题的选项

可以使用最后X天和旧X天的组合来实现

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="students">
    <attribute name="name" />
      <filter type="and">
        <condition attribute="start_date" value="30" operator="last-x-days"/>
        <condition attribute="start_date" value="29" operator="olderthan-x-days"/>
      </filter>
  </entity>
</fetch>