Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Custom Lookup on Address form not loading at first time, upgraded to CRM 2016.

Posted on by Microsoft Employee

We have recently upgraded to CRM 2016 from CRM 2011 and removing unsupported code and resolving issues occurring after upgrade.

Address entity form having an Iframe which contains several custom Lookups. Issue is when we open the address form for very first time all lookup show blank once we close the form and reopen the same Lookups get populate properly. I have debug the code and didn't find any issue with script written on IFrame page.

Same form is working fine in CRM 2011 organization.

FYI : When I am opening the same Form in IE10 it is throwing a 'Mscrm' is undefined error when navigating within the site itself. The URL which is throwing the error is pointing at "http://myOrg/testDev/userdefined/edit.aspx?_CreateFromId=----". Code snippet is below where it is breaking :-

<script language="JavaScript">

window.setTimeout(ribbonRefreshForArticle, 2000);
function ribbonRefreshForArticle() {
var uri = Mscrm.CrmUri.create(window.location.href);
if (uri.get_query() != null && uri.get_query()["etc"] == Mscrm.InternalUtilities.EntityTypeCode.KbArticle) {
refreshRibbon();
}
}
</script> 
Line : Mscrm.CrmUri.create(window.location.href); causing the issue.

FYI : We have run any update on the upgrade till now.

Any help is greatly appreciated. Thanks!

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Lookup on Address form not loading at first time, upgraded to CRM 2016.

    Thanks Mark for you suggestion,

    Want to let you know that this 'Mscrm' is undefined error is coming only with IE10, with Edge its working fine. One more thing I don't know why this function is getting called, Don't have any ribbon related to KBArticle and we are not using this entity anymore.

    Please suggest you have any idea about this, but why my custom lookup is not populating at the very first time.

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Custom Lookup on Address form not loading at first time, upgraded to CRM 2016.

    Form rendering is changed dratically from 2011 to 2016. you can follow some trial error to nook the error down.

    Please remove the iframe and check if the error still persists in IE10

    Please check if cross side scripting is enebled for i frame

    msdn.microsoft.com/.../gg328034.aspx

    Also check by enbling legacy form rendering once

    blogs.msdn.microsoft.com/.../microsoft-dynamics-crm-online-2015-update-1-new-form-rendering-engine

  • Verified answer
    TheMarkChristie Profile Picture
    TheMarkChristie 10,328 on at
    RE: Custom Lookup on Address form not loading at first time, upgraded to CRM 2016.

    Hi

    KBArticles in 2016 have changed significantly - It could be you are now calling the wrong entity?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans