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
Ross McLeod 3Ross McLeod 3 

Flow Lightning Component

Hi

Hopefully a quick and easy one. I'm trying to build a lightning component for use within a screen flow. I'm having issues getting the attributes from the component back to the flow.

This is the attribute on the component:
<aura:component access="global" implements="lightning:availableForFlowScreens">

   <aura:attribute name="responseValue" type="Boolean" />
</aura:component>

This is the Design File
<design:component label="RUK Dialog Response Buttons">
    <design:attribute name="responseValue" label="Dialog Response" />
</design:component>

In my flow form I can add the component and see the input and out put parameters.

Flow Screen

I set up a flow variable, but I can't seet that when I try and assign from the flow component.
Flow Variable

Any ideas?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Ross,

Have you tried checking if it works if the available for output is checked?

Also, Have you checked the below links as they seem to have a similar issue:

>>https://salesforce.stackexchange.com/questions/273775/is-it-possible-to-return-a-value-from-a-lightning-component-to-a-flow/273790#273790

>>https://salesforce.stackexchange.com/questions/274131/pass-object-from-flow-to-lightning-component

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.