Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Find All References of a JavaScript file

Posted on by 155

I have a custom JavaScript file in web resources which “seems” like it is no longer needed.

If it is not being used them I would like to remove it., but before I do that I want to make sure that the JavaScript is not being called by anything.

Is there any way to check if a specific JavaScript file is being called anywhere in CRM, sort of like the “Find All References” in Visual Studio.  

  • Suggested answer
    Rui Carvalho Profile Picture
    Rui Carvalho on at
    RE: Find All References of a JavaScript file

    Hi Gansea,

    The only way to know that is by checking the dependencies for the Javascript (Select the javascript on WebResources and click on 'Show Dependencies'). If it is being called on the OnLoad, OnSave or OnChange for a form it will show in which form he is being loaded and used.

    If you are calling the javascript within other Javascripts then this is not possible. Because this doesn't cause dependency on the environment.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans