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.
*This post is locked for comments
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
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.
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.
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
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.
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156