gpt4 book ai didi

javascript - CRM 2011 JScript retrieveMultiple 抛出错误请求错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:36:25 25 4
gpt4 key购买 nike

我尝试在联系表单上使用 oData 检索多条记录,但它抛出 Bad Request 错误。谁能告诉我为什么会这样。

提前致谢

脚本

// Retrieving multiple connections with accound ID as Record2Id.
function myFunction
{
var contId = Xrm.Page.data.entity.getId();

retrieveMultiple("ConnectionSet", "ConnectionId", "Record2Id eq '" + contId + "'", successCallbackConnections, errorCallbackConnections, true);
}

function successCallbackConnections(data, textStatus, XmlHttpRequest)
{
for(i=0; i < data.length; i++)
{
alert(data[i].RoleName);
}
}

function errorCallbackConnections(XmlHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}

最佳答案

试试这个:

function myFunction
{
var contId = Xrm.Page.data.entity.getId();

retrieveMultiple("ConnectionSet", "ConnectionId,Record2Id", "Record2Id/Id eq guid'" + contId + "'", successCallbackConnections, errorCallbackConnections, true);
}

关于javascript - CRM 2011 JScript retrieveMultiple 抛出错误请求错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14893011/

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