Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to use Resx file on the HTML web resource?

Posted on by 65

Hi Experts, 

I have an HTML Web Resource, that should make use of the Resx file, but for some reasons we kept getting the below error, even though I have added the resx file into the file dependency list.

Error

global.ashx?ver=2142456859:6780 Uncaught Error: Web resource named xxxxxxx.resx not found in the system

Using the same file on the Form scripting works like a charm.

Is there a way to use resx file in the HTML web resource?

*This post is locked for comments

  • Suggested answer
    plkgupta Profile Picture
    plkgupta 15 on at
    RE: How to use Resx file on the HTML web resource?

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

    Please check step by step process here.

  • pavankumar Profile Picture
    pavankumar 95 on at
    RE: How to use Resx file on the HTML web resource?

    Hi ,

    I am also having same issue with .RESX files in Webresource.

    Thanks,

  • ARIFNIIT Profile Picture
    ARIFNIIT 1,391 on at
    RE: How to use Resx file on the HTML web resource?

    I think you can store Resx file as a attachment and create an action to access this file using JS in HTML WebResource. If you have on-Premise deployment then you can save file in folder on server and then access using JS.

  • Parth Bhaidani Profile Picture
    Parth Bhaidani 65 on at
    RE: How to use Resx file on the HTML web resource?

    Hi Goutam,

    Thanks a  lot for your reply.

    We already have a different mechanism in place for getting the localized labels.

    However, we want to replace that piece with the RESX thing that has been introduced in Dynamics 365. So, RESX works like a charm on the forms, but when it used on an HTML web resource it doesn't work.

    Hope to find a way around that.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How to use Resx file on the HTML web resource?

    Hi,

    Hope below reference will help you-

    www.c-sharpcorner.com/.../how-to-get-the-global-resource-file-values-in-different-loca

    I have one suggestion to you instead of creating resx file ,  create custom entity with key value fields and keep there all the information .

    From the html page you will easily get key/value using Web Api  call from the custom entity.

    Hope this helps.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans