web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

D365 - In UCI, custom HTML page lookup is not working in short Mscrm.EntityPropUtil.EntityTypeName2CodeMap is not working for HTML page for UCI/Mobile layout but it is working fine in classic CRM, is there any solution for this?

(0) ShareShare
ReportReport
Posted on by 30

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

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    As a part of 9.0 lookupObjects function was shipped. Check it - docs.microsoft.com/.../lookupobjects

    I believe this is what you need.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans