gpt4 book ai didi

javascript - XrmServiceToolkit.SOAP.RetrieveMultiple 查询 CRM 2016

转载 作者:行者123 更新时间:2023-11-30 00:08:07 27 4
gpt4 key购买 nike

我做了一个查询,从 CRM 获取所有具有特定用户 guid 或今天到期的报告。所以等效的 if 语句是:

if(ownerid == userGuid || novemo_date == today) {...}

如何进行这种查询:

if(ownerid == userGuid && (novemo_date == today || novemo_date == yesterday)){...}

这是我的查询:

var query = "<a:ColumnSet>" +
"<a:AllColumns>true</a:AllColumns>" +
"</a:ColumnSet>" +
"<a:Criteria>" +
"<a:Conditions />" +
"<a:FilterOperator>Or</a:FilterOperator>" +
"<a:Filters>" +
"<a:FilterExpression>" +
"<a:Conditions>" +
"<a:ConditionExpression>" +
"<a:AttributeName>ownerid</a:AttributeName>" +
"<a:Operator>Equal</a:Operator>" +
"<a:Values xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>" +
"<b:anyType i:type='c:string' xmlns:c='http://www.w3.org/2001/XMLSchema'>" + userGuid + "</b:anyType>" +
"</a:Values>" +
"</a:ConditionExpression>" +
"<a:ConditionExpression>" +
"<a:AttributeName>novemo_date</a:AttributeName>" +
"<a:Operator>Equal</a:Operator>" +
"<a:Values xmlns:b='http://schemas.microsoft.com/2003/10/Serialization/Arrays'>" +
"<b:anyType i:type='c:string' xmlns:c='http://www.w3.org/2001/XMLSchema'>" + today + "</b:anyType>" +
"</a:Values>" +
"</a:ConditionExpression>" +
"</a:Conditions>" +
"<a:FilterOperator>Or</a:FilterOperator>" +
"<a:Filters />" +
"</a:FilterExpression>" +
"</a:Filters>" +
"</a:Criteria>" +
"<a:Distinct>false</a:Distinct>" +
"<a:EntityName>novemo_timereport</a:EntityName>" +
"<a:LinkEntities />" +
"<a:Orders />" +
"<a:PageInfo>" +
"<a:Count>0</a:Count>" +
"<a:PageNumber>0</a:PageNumber>" +
"<a:PagingCookie i:nil='true' />" +
"<a:ReturnTotalRecordCount>false</a:ReturnTotalRecordCount>" +
"</a:PageInfo>" +
"<a:NoLock>false</a:NoLock>";

最佳答案

使用SOAP logger ,然后您可以用 C# 编写您的逻辑,记录器将为您输出请求/响应 XML。

关于javascript - XrmServiceToolkit.SOAP.RetrieveMultiple 查询 CRM 2016,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37695879/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com