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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans