function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sagar BhatiaSagar Bhatia 

Get quick Action name on lightning component


I have a lightning component called InvoiceGenerator. Which is programmed to generate invoice PDF / send an Email with PDF . My requirement is to call the same component from two different Quick Actions, So I want to differentiate between the actions as which one is PDF and Send Email. I cannot create a new component and pass a parameter for IsPDF. Need to do in a single component itself. 

Basically, I need to know which quick action was pressed so that I can make sure my code is processed as per request.