Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Localization in HTML web Resource

(0) ShareShare
ReportReport
Posted on by

Hello All,

I am trying to open a custom HTML using the Xrm.Navigation.openWebResource, and in the supporting Javascript file for the html page i am trying to use the Xrm.Utility.getResourceString method, and this is giving me the following error Web resource name "...." not found in the system. I debugged and found that DependencytoGUIDMap is null which will be usually loaded on the window object. The same is working on a form page, bot not a html web resource. Any help is appreciated. 

*This post is locked for comments

  • Suggested answer
    plkgupta Profile Picture
    plkgupta 15 on at
    RE: Localization in HTML web Resource

    Please review the detailed steps listed out in this blog.

    medium.com/.../localize-your-web-resources-dynamics-crm-365-5acd0e2458ce

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Localization in HTML web Resource

    Hello,

    Here is workaround that you can use to use getResourceString in Html webresources - butenko.pro/.../how-to-use-xrm-utility-getresourcestring-in-html-webresources

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Localization in HTML web Resource

    Hello,

    I'm struggling with the exact some behaviour.

    Using Xrm.Utility.getResourceString works fine in a javascript file. But usage in an HTML WebResouce just brings up this error.

    Any fixes or workarounds here to use resx localization here?

    EDIT: As stated in the MSDN Notes Xrm.Utility.* Methods should work inside a HTML WebResource
    https://msdn.microsoft.com/en-us/library/gg309536.aspx#Reference%20other%20web%20resources%20from%20an%20HTML%20web%20resource

  • RE: Localization in HTML web Resource

    Hi Thanks for answering, this is a different issue,as you can see i am trying to get a localized string for a given key from the resx file. The Xrm.Utility.getResourceString does that for you. The same function, is giving me desired result on a form page, but not on a html page opened using Xrm.Navigation.openWebResource. Let me know if you need more details.

  • Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Localization in HTML web Resource

    Does this helps?

    stackoverflow.com/.../crm-2011-web-resource-not-found-exception-when-resource-exists

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans