【问题标题】:How to figure out if today comes between 2 given dates in fetchXML如何确定今天是否在 fetchXML 中的 2 个给定日期之间
【发布时间】:2019-06-10 14:03:17
【问题描述】:

我在 Dynamics 365 CRM 中有 2 个日期列,一个是有效的旅行通行证, 另一个是有效的旅行通行证...

我想知道旅行通行证今天有效,但我找不到这样做的方法?

有操作,onOrAfter,但我不知道今天怎么说 onOrAfter

【问题讨论】:

  • 由于today 的要求,不确定您是否能够在视图中执行此操作。你可以在报告中构建它

标签: ssis dynamics-crm fetchxml dynamics-crm-365


【解决方案1】:

如果您用代码编写查询,您只需在查询中输入今天的日期。

例如

Valid from - on or before - 16 Jan (today's date)

And

Valid to - on or after - 16 Jan (today's date)

【讨论】:

    【解决方案2】:

    格式化选项包括:

    `<condition attribute="createdon" operator="on-or-after" value="2014-06-20" />`
    

    OR 与大于或等于运算符ge

    &lt;condition attribute="createdon" operator="ge" value="07/01/2014" /&gt;

    或者如果你想进入第二个:

    <condition attribute="modifiedon" value="2014-04-23T14:05:18-04:00" operator="gt"/> <condition attribute="modifiedon" value="2014-04-23T14:48:37-04:00" operator="lt"/>

    【讨论】:

      猜你喜欢
      • 2021-05-25
      • 2012-02-25
      • 1970-01-01
      • 1970-01-01
      • 2019-11-07
      • 1970-01-01
      • 2017-05-11
      • 1970-01-01
      • 2015-05-08
      相关资源
      最近更新 更多