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

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: 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?

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans