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 :
Customer experience | Sales, Customer Insights,...
Answered

Ribbon Workbench button not reading one of my webresource Javascript functions

(0) ShareShare
ReportReport
Posted on by

Hi,

I made a custom new ribbon workbench button and linked it to my webresource, and within this webresource there are many JS functions.

The strange problem I am facing now is that there is one JS function that does not seem to work while all others in the same file do.

The one that is not working is something very simple (I literally just changed it to a one liner console.log() statement to test it).

To explain with an example:

For example, let's say my webresource has 3 functions, functionA, functionB, and functionC (all inside the same webresource file, literally right next to each other)

In my ribbon workbench, if I map the custom JS action to functionA, it works fine, and if I map it to functionB, nothing happens at all when I click the button, and if I map it to functionC, it works fine.

In this example, functionB is just a simple console.log statement, and copying that function into functionA or functionC would both work correctly. And it's ONLY functionB that doesn't seem to respond at all.

Please advise.

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Can you please share code snap and ribbon snap for function B?

    Also, please try by renaming the function and check syntax issue like curly braces closing

  • JYSSB7 Profile Picture
    on at

    Renaming the function worked.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans