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
Carolin HeynCarolin Heyn 

How to call a Flow from lightning Button on apex component?

HI everyone, 

so here is my use case. I have already an existing apex component with 

<lightning:button variant="brand" label="Save" onclick="{!c.saveForecast}" class="buttonStyle"/>

In addition to the save action I would like to start a Flow with passing the input variable of the record I am on. 

Anyone who can help me with that, would really appreciate it! :) 

BR carolin 
 
AbhinavAbhinav (Salesforce Developers) 
Check this similar post

https://developer.salesforce.com/forums/?id=9062I000000XmTPQA0

Thanks!