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 CRM (Archived)

Get the Ribbon label on the click - Dynamics 365

(0) ShareShare
ReportReport
Posted on by 3,710

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

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator 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.

  • Kishor Kumar Profile Picture
    3,710 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
    50,091 Moderator 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.

  • Suggested answer
    Sreevalli Profile Picture
    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
    Mahendar Pal Profile Picture
    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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Wayne Walton Profile Picture

Wayne Walton 2

#2
Good.Panos Profile Picture

Good.Panos 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans