Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Set the Same Flow Variables in a Subflow as in the Main Flow

Soki Ando
Tera Contributor

I have linked multiple subflows to a flow. If anyone knows how to set the same flow variables in a subflow as in the main flow, please let me know.
I’ve specified the Consumer record, which triggers this flow, as the flow variable, so I want to pass the same data to the subflow.

 

Flow

SokiAndo_0-1727237805547.png

 

Subflow

SokiAndo_1-1727237870648.png

 

5 REPLIES 5

yeah, here it seems you created Subflow input variable type as a string, so within the reference table all the string fields are available to select. Try changing the subflow variable type to Reference and then select the flow variable.