Skip to main content

Notifications

Announcements

No record found.

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 8

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.

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

    Hi, any news ?

  • Verified answer
    meelamri Profile Picture
    13,212 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

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…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans