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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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);

               }

           }

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    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

  • Community Member Profile Picture
    on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans