web
You’re offline. This is a read only version of the page.
close
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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans