Flow Interaction Output Variables
Overview
Every interactive Avonni Flow Screen Component exposes a single output attribute named Flow Interaction Output Variables (flowInteractionOutputVariables). It is a set of ten generic slots — Variable 1 through Variable 10 — that let you pass data back to your screen flow from a flow you launched through an interaction.
You don't set these slots directly. They are filled by the Open Flow Dialog and Open Flow Panel interactions when the launched flow finishes — so the same component that opened the flow also carries its results.
How it works
Launch a flow from the component using an Open Flow Dialog or Open Flow Panel interaction.
In the launched flow, mark the variable you want to return as Available for Output.
In the interaction's Output Variables setting, add a row that maps:
Name — the launched flow's output variable API Name (must match exactly).
Variable Number — the slot (1–10) where the returned value is stored.
When the launched flow finishes, each mapped value lands in its slot. Every slot is a typed holder (the
FlowInteractionOutputVariableApex type) that stores the value in the field matching its type — text, number, boolean, date, date/time, or a collection of those.
Reading a slot in your flow
A slot (variable1…variable10) is not a bare value — it is a typed holder. To read it, append the property that matches the type of the value you assigned to that slot. For example, if Variable 1 holds a Boolean:
{!<ComponentName>.flowInteractionOutputVariables.variable1.booleanValue}Pick the property by the value's type:
Text
textValue
textCollectionValue
Number
numberValue
numberCollectionValue
Boolean
booleanValue
booleanCollectionValue
Date
dateValue
dateCollectionValue
Date/Time
dateTimeValue
dateTimeCollectionValue
In the Flow Builder value picker, drill into the component → Flow Interaction Output Variables → the Variable Number you chose → the typed property above. Use it in decisions, assignments, or any later element like any other flow variable.
The property you read must match the type of the value you assigned to that slot. These slots hold only text, number, boolean, date, date/time, and collections of those — Salesforce records (SObjects) are not supported. To return a record from a launched flow, output its fields as individual scalar values (or its Id as Text).
Notes
API Names must match exactly between the launched flow's output variable and the Name you enter in the interaction.
The launched flow variable must be marked Available for Output.
Output capture from Open Flow Panel requires Avonni Components package v6+.
A component exposes the same ten slots regardless of type — assign a distinct Variable Number to each output you capture so they don't overwrite one another.
Related
Last updated
Was this helpful?
