D365 - In UCI, custom HTML page lookup is not working in short Mscrm.EntityPropUtil.EntityTypeName2CodeMap is not working for HTML page for UCI layout and mobile interface, but same is working CRM classic way. Can you please let me know if there is any solution for this or it is a known CRM issue for UCI ?
var accountObjCode;
if (accountObjCode == null || accountObjCode == undefined) {
accountObjCode = Mscrm.EntityPropUtil.EntityTypeName2CodeMap["account"];
}
var accountLookupUrl = clientUrl + "/_controls/lookup/lookupinfo.aspx?LookupStyle=single&class=null&objecttypes=" + accountObjCode + "&browse=0&ShowNewButton=0&ShowPropButton=1&DefaultType=0";
var dialogwindow = new Mscrm.CrmDialog(Mscrm.CrmUri.create(accountLookupUrl), window, 500, 500);
dialogwindow.setCallbackReference(function (result) {
for (var i = 0; i < result.items.length; i++) {
}
}
*This post is locked for comments