Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

CRM ribbon javascript dependencies

(0) ShareShare
ReportReport
Posted on by 105

Hi all,

Using CRM online.

I have a javascript file tied to a ribbon button on the main grid of the contact form.  I want to have a second dependency, like is mentioned in this thread:   

 

With ribbon workbench, I can use  the isNan trick to get additional js code loaded.

I can't seem to do the same from the make.powerapps.com site.  

Specifically, I went to make.powerapps.com, then selected my Customer Service Hub instance, then chose 'Edit', then chose 'Contact', then hit the three ellipses, and selected the 'edit command bar' option, then chose 'main grid'

I added my command button and set the main javascript file and method.  There is no other option on the command button to add an additional library that I can see.

I then did a 'save and publish' operation.

My code gets called, but, as expected, the dependency is not loaded and can't be called.

One additional thing I did try was to add a dependency to the main script.  I was able to set up the dependent js file in my solution, tell dynamics of the dependency, save it, publish it, and restart the browser.  The dependent script is still not loaded.

Is this something that can only be accomplished with ribbon workbench?

  • Suggested answer
    Steve Zhao2 Profile Picture
    Steve Zhao2 on at
    RE: CRM ribbon javascript dependencies

    Hi rduz,

    Did you try to load the dependent JS file in the main script in this way?

    "One additional thing I did try was to add a dependency to the main script.  I was able to set up the dependent js file in my solution, tell dynamics of the dependency, save it, publish it, and restart the browser.  The dependent script is still not loaded."

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…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

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,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans