You need to sign in to do that
Don't have an account?
Yadhagu L
how to get quick action button name in aura component?
I have two quick action buttons both the buttons calling the same aura component, I need the name of the button which is clicked, From that i have two contents to display based on the button name. If this scenario is possible give me a solution, Thanks
In an Aura component, you can retrieve the name of the quick action button that was clicked by utilizing the "e.force:showToast" event and accessing its parameters. Here's how you can achieve this:
Create an Aura component to handle the quick action:
QuickActionComponent.cmp: Create the controller for the component:
QuickActionComponentController.js: Use the "force:lightningQuickActionWithoutHeader" interface to make the component available as a quick action.
When the component is used as a quick action, the "handleInit" function will be executed, and it will determine the name of the clicked button using the "actionName" parameter.
Hope this helps !
Thank you.