Reference Flow Output Variable Values in a Wrapper Aura Component
When you embed a flow in an Aura component, you can display or reference the flow’s variable values. Use the onstatuschange action to get values from the flow’s output variables. Output variables are returned as an array.
The variable must allow output access. If you reference a variable that doesn’t allow output access, attempts to get the variable are ignored.
This example uses the JavaScript controller to pass the flow’s accountName and numberOfEmployees variables into attributes on the component. Then, the component displays those values in output components.
See Also