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 :
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,218 User Group Leader on at

    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,218 User Group Leader on at

    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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 172

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans