【发布时间】:2014-04-23 14:36:35
【问题描述】:
CRM 2013-OnPremise
你好,
我已经为这个 fetchXML 定义的未来 7 天内开始日期的项目编写了一个基本视图:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" >
<entity name="xxxx_project" >
<attribute name="xxxx_startdate" />
<attribute name="xxxx_accountid" />
<attribute name="xxxx_produom" />
<order attribute="xxxx_name" descending="false" />
<filter type="and" >
<filter type="and" >
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="xxxx_projectstatus" operator="eq" value="331420009" />
<condition attribute="xxxx_materialsshipdate" operator="null" />
<condition attribute="xxxx_startdate" operator="next-x-days" value="7" />
</filter>
</filter>
<attribute name="xxxx_projectid" />
</entity>
</fetch>
现在我期待 fetchXML 将系统日期注入其中,或者至少是一个占位符,例如:
<condition value='2012-03-08T15:10:00Z' />
也许这个值是在运行时添加的,而不是 fetchTemplate 的一部分?那么 Msoft 是否对类似的东西进行了一些运行时更改?
<condition attribute="xxxx_startdate" operator="next-7-days" value="2014-04-23" />
但我不知道它应该是什么样子。
我问的原因是我想使用这个基本的 fetchXML 作为模板,但注入我选择的日期。
有什么想法吗?
【问题讨论】:
标签: dynamics-crm-2011 dynamics-crm