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 tell what Java Scripts are not being used?

(0) ShareShare
ReportReport
Posted on by 2

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

  • David Jennaway Profile Picture
    David Jennaway 14,063 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
    gdas 50,089 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
    gdas 50,089 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
    USA80 2 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
    gdas 50,089 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans