Dynamics crm 2011 MS CRM 2011获取XML筛选器表达式

Dynamics crm 2011 MS CRM 2011获取XML筛选器表达式,dynamics-crm-2011,fetchxml,Dynamics Crm 2011,Fetchxml,我有一个获取xml查询,我想过滤带有日期&时间字段的记录 我在或之前使用表达式,但这似乎只过滤日期(没有时间) FetchXml=。。。 ''+ ''+ ''+ ''+ ''+ ''+ 您可以构建日期并将0影响到时间部分。这就是你想要的 var date=Xrm.Page.getAttribute(“createdon”).getValue(); var d=新日期(Date.getFullYear(),Date.getMonth(),Date.getDate(),0,0,0); 您可以构建日期

我有一个获取xml查询,我想过滤带有日期&时间字段的记录

我在或之前使用表达式,但这似乎只过滤日期(没有时间)

FetchXml=。。。
''+
''+
''+
''+
''+
''+

您可以构建日期并将0影响到时间部分。这就是你想要的

var date=Xrm.Page.getAttribute(“createdon”).getValue();
var d=新日期(Date.getFullYear(),Date.getMonth(),Date.getDate(),0,0,0);

您可以构建日期并将0影响到时间部分。这就是你想要的

var date=Xrm.Page.getAttribute(“createdon”).getValue();
var d=新日期(Date.getFullYear(),Date.getMonth(),Date.getDate(),0,0,0);

我将使用高级查找功能,直到找到兼容的查询,然后将其导出为XML;-)我将使用高级查找功能,直到找到兼容的查询,然后将其导出为XML;-)谢谢你的回复。我想查一下我约会的时间。例如,如果当前日期时间为14/03/2013 17:20,而我的字段日期时间为14/03/2013 18:00,则我的查询应删除该记录。感谢您的回复。我想查一下我约会的时间。例如,如果当前日期时间为14/03/2013 17:20,而我的字段日期时间为14/03/2013 18:00,则我的查询应删除该记录。
FetchXml= ...
'<filter type="and">'+
'<filter type="or">'+
    '<condition attribute="scheduledend" value="'+ currentdate +'" operator="on-or-before"/>'+
    '<condition attribute="scheduledend" operator="null"/>'+
'</filter>'+
'</filter>'+