Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Get the Ribbon label on the click - Dynamics 365

(0) ShareShare
ReportReport
Posted on by 3,702

Hi All,

I want to get the ribbon name/label on the button click, say we have custom button with drop down values, when we click on any one of the drop down values we need to get the selected button label.

Annotation-2019_2D00_01_2D00_04-152647.jpg

*This post is locked for comments

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Get the Ribbon label on the click - Dynamics 365

    Hi Kishor,

    How about calling your js method and passing a string parameter so that your function will now which button is clicked ?

    You can see list of the parameters here, https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/customize-dev/define-ribbon-actions

    Check this post as a reference www.crmconsultants.co.uk/pass-parameter-from-crm-command-bar-button-with-javascipt

  • Suggested answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Get the Ribbon label on the click - Dynamics 365

    Hi Kishor,

    Directly it is not possible to pass function names dynamically. But I think you should be able to update a dropdown/Text field based on your dropdown button click and then you manage to achieve the required functionality either with Business Rule, Plugin or WF.

  • Suggested answer
    gdas Profile Picture
    gdas 50,087 on at
    RE: Get the Ribbon label on the click - Dynamics 365

    I believe the straight way to pass as a string parameter in the ribbon action , as the button name will not change. Go to ribbon workbench , click on the  button and go to command action for each button and add parameter , pass string value with the hard coded button name there.

  • Kishor Kumar Profile Picture
    Kishor Kumar 3,702 on at
    RE: Get the Ribbon label on the click - Dynamics 365

    Goutam, we have created an custom button only, on click I need to get the label of the button, based on the selection of the drop down values we are validating some custom actions, say If I click Lost, the function I need to get the lost in the function similarly for the remaining ones

  • Suggested answer
    gdas Profile Picture
    gdas 50,087 on at
    RE: Get the Ribbon label on the click - Dynamics 365

    Hi Kishor,

    Unfortunately you can not customize OOB button (Disqualify) ribbon action. In that case you need to create custom button and pass the parameter on each type of action.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans