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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to use Resx file on the HTML web resource?

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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.

  • Parth Bhaidani Profile Picture
    65 on at

    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.

  • ARIFNIIT Profile Picture
    1,391 on at

    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.

  • pavankumar Profile Picture
    97 on at

    Hi ,

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

    Thanks,

  • Suggested answer
    plkgupta Profile Picture
    15 on at

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

    Please check step by step process here.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans