gpt4 book ai didi

javascript - 使用javascript从crm 2015中的查找字段中获取值

转载 作者:行者123 更新时间:2023-11-29 21:39:50 28 4
gpt4 key购买 nike

我可以得到联系人的 ID,但是我可以得到这个联系人的电子邮件地址?????

function getdata(){
var entityName, entityId, entityLabel, lookupFieldObject;

// parentaccountid is the lookup field name that we try to reach its values
lookupFieldObject = Xrm.Page.data.entity.attributes.get('mbmhr_employee');
if (lookupFieldObject.getValue() != null) {
entityId = lookupFieldObject.getValue()[0].id;
entityName = lookupFieldObject.getValue()[0].entityType;
entityLabel = lookupFieldObject.getValue()[0].name;

Xrm.Page.getAttribute("mbmhr_test22").setValue(entityLabel );

}
}

最佳答案

您需要向服务器查询相关记录的更多详细信息。

看看Getting started with CRM 2011 JavaScript REST (OData) Web Service CallsRetrieve Data using OData queries with Javascript in CRM 2013让你朝着正确的方向前进。

关于javascript - 使用javascript从crm 2015中的查找字段中获取值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33369129/

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