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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Best practice in naming convention of Web Resources

(0) ShareShare
ReportReport
Posted on by 193

Hi all,

I'm not sure if there's any standard or best practice we are following regarding best practice of naming conventions. Just wanted to check what are your common practices? I saw some put underscore (_), some put slash (\). Should the display name be the same as Display Name? For example for icons what should be the naming convention (e.g. {prefix}_/Icons/{entityname}.svg)?

Thanks in advance for your feedback!

I have the same question (0)
  • LuHao Profile Picture
    40,892 on at
  • Suggested answer
    Kumar Viju Profile Picture
    1,026 on at

    Keep it simple and readable for everyone. Experience from multiple projects.

    Sample:

    TypeOfWebResource/ProjectName/EntityName/Object

    Ex 1: JScript/LoanManagement/Opportunity/Opportunity.js

    Ex 2: HTML/LoanManagement/Account/ProductGrid.html

  • yanoh Profile Picture
    155 on at

    The Dynamics don't have some naming conventions.

    You can name it for your convenience, as already commented.

    You should always use the $webresource directive when referencing a web resource from a ribbon control or from a SiteMap sub area.

    docs.microsoft.com/.../web-resources

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans