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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to tell what Java Scripts are not being used?

(0) ShareShare
ReportReport
Posted on by 26

Hello,

We have a lot of JavaScripts, and I am wondering if there is a way to find Scripts that are not tied to anything in CRM, so that I can remove them? I thought there was maybe a plugin in the XrmToolBox, but not sure which one it would be.

Thank you.

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at
    RE: How to tell what Java Scripts are not being used?

    Be aware that a form may have a dependency on a web resource, but might not have any enabled events that call functions in the web resource. So, even if you remove web resources with no dependencies, you may still have some that aren't actually in use. You can only really identify these by looking at each form in turn

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to tell what Java Scripts are not being used?

    Hi,

    I can see you are using on-premise environment .

    There may be below table related to that  -

    DependencyBase

    DependencyNodeBase

    WebResourceBase

    try to do some db operation to find  out this like below .

    select WebResourceId, Name from WebResourceBase where WebResourceId not  in (select ObjectId from DependencyNodeBase)

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to tell what Java Scripts are not being used?

    Yes your are correct, you can check only one at a time and there is no way to find out specific one which has not used using UI. You have to go through one by one .

  • USA80 Profile Picture
    26 on at
    RE: How to tell what Java Scripts are not being used?

    I would have to do this one by one though, correct?  If I am correct, is there another way to find what scripts are not tied to anything in CRM all at once, rather one by one?

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to tell what Java Scripts are not being used?

    Hi ,

    Go to settings --> Customization -->Customize the system --> click on "Web Resource" from left navigation (under default solution)--> Find the web resource and select it --> in the top menu you will find a button called  "Show Dependencies".

    You will get all the forms name with the entity information where it has been referenced.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans