+ Start a Discussion
William Woodson 3William Woodson 3 

lightning component embedded in flow how to pass record id

I have a lightning component embedded in a flow, how do I pass the recordId from the flow into the lightning component?

Everything I have found shows the old flow designer.  The new lightning flow designer does not have an option to set input fields on the lightning component.

Alain CabonAlain Cabon
Hi William,

The interface of a lightning component is defined by the design resource where you defined the attributes to pass.

Configure Components for Flow Screens:
Make your custom Aura components available to flow screens in Flow Builder by implementing the lightning:availableForFlowScreens interface.
To make an attribute’s value customizable in Flow Builder, add it to the component's design resource. 

Tushar sharmaTushar sharma
Although I have used the LWC you can follow the same steps to pass data.