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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to look at code behind button on ribbon?

(0) ShareShare
ReportReport
Posted on by 26

There is a custom button on the ribbon bar when I go into an Opportunity record.  I need to see what the button is doing behind the scenes.  How can I do this?  I  have tried going into ribbon workbench, but for some reason it never lets me import a solution in there. 

Please let me know, thank you.

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: How to look at code behind button on ribbon?

    Hi, 

    You can use the Command Checker. First you need to add "&flags=FCB.CommandChecker=true&ribbondebug=true" to your URL. You will get something like: 

    https://yourOrg.crm4.dynamics.com/main.aspx?appid=f9e00965-1b80-eb11-b1ab-000d3a4a16f3&flags=FCB.CommandChecker=true&ribbondebug=true

    After adding the flag to the url a new button will appear on your ribbon that allows debugging: 

    pastedimage1619642176193v2.png


    Deactivate button as an example: 

    pastedimage1619642233052v3.png

    The command checker shows us that the JavaScript function associated to the Deactivate command is XrmCore.Commands.changestate.changeState from the Main_system_library.js library.

    Also, the command checker gives us the details of enable rules and display rules: 

    pastedimage1619642501640v4.png

  • meelamri Profile Picture
    13,216 User Group Leader on at
    RE: How to look at code behind button on ribbon?

    Hi, any news ?

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 74 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 55 Most Valuable Professional

#3
Anthony Blake Profile Picture

Anthony Blake 43 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans