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
Trina Banerjee 22Trina Banerjee 22 

how to pass flow variable into lightning component

I have a flow and a lightning component in it. My flow has a variable ObjectID that I want to pass to my lightning component and write a soql based on that variable.
I want to query all records under Portal_Dealer_Relationship__c where ID= ObjectID.
I dont know how to pass this variable and where to use the variable in the component for the SOQL.
Can anyone help please? 
 
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Trina

Have you declared all the variables in the design bundle of your component that needs to be set through a flow?

For reference use this link : 
https://www.jitendrazaa.com/blog/salesforce/embed-lightning-component-in-flow/

Cheers!!!!