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 :
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?

I have the same question (0)
  • Suggested answer
    Steve Zhao2 Profile Picture
    Microsoft Employee on at

    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

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
FSRon Profile Picture

FSRon 60

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 32 Most Valuable Professional

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 29 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans