Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to tell what Java Scripts are not being used?

Posted on by 2,645

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,085 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,085 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,645 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,085 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans