Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cannot find main system library javascripts in CRM

(0) ShareShare
ReportReport
Posted on by

Hello!

In Opportunity, I wish to add Opportunity_main_system_library.js which is supposed to be in "Sales/Opportunity/" path. However, I cannot find it. The only place where I can find it is in Ribbon Workbench.

Actually, I cannot find any javascript files under "Sales/" path in CRM.

How do I go about to find these files in CRM?

*This post is locked for comments

  • RE: Cannot find main system library javascripts in CRM

    Thank you for the link!

    Although I almost did exactly the same as the guideline from your link. I created a new button, added enable rules/display from mscrm button, binding the button to my custom javascript and inside my script I am calling mscrm function.

  • Verified answer
    gdas Profile Picture
    gdas 50,089 Moderator on at
    RE: Cannot find main system library javascripts in CRM

    Hi,

    You can not access system library in Dynamics CRM. Even you should not inherit any System JS method or files   ,which is completely unsupported.

    Try to do with your own command actions , here is one scenario might be useful for you-

    dynamics365blocks.wordpress.com/.../how-to-override-out-of-the-box-buttons-behavior-in-ms-dynamics-crm

  • Suggested answer
    RE: Cannot find main system library javascripts in CRM

    Nevermind!

    Apparently I can just call the method that's inside Opportunity_main_system_library.js without adding it to the form.

           onLoad: function () {

               try {

               debugger;

                   Mscrm.OpportunityCommandActions.opportunityClose(1);

               } catch (e) {

                   alert(e);

               }

           }

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans