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
Filip Poverud 1-9Filip Poverud 1-9 

Lightning Component Input Parameters

Hi all. I have a lightning component firing a Flow and I use this on a Global Action. However, every time I want to fire different flows from different buttons, I create new components.

Is there a way to use the design system or otherwise make it generic ?
Best Answer chosen by Filip Poverud 1-9
AnudeepAnudeep (Salesforce Developers) 
Hi Filip, 

You can try using multiple service components inside a Lightning Component, which will allow you to essentially work with multiple Apex controllers from within the same component. 

See this solution

Anudeep

All Answers

AnudeepAnudeep (Salesforce Developers) 
Hi Filip, 

You can try using multiple service components inside a Lightning Component, which will allow you to essentially work with multiple Apex controllers from within the same component. 

See this solution

Anudeep
This was selected as the best answer
Filip Poverud 1-9Filip Poverud 1-9
Thank you Anudeep, this was really good reading :)