Send flow variable as Output to the main flow

Anubhav24
Mega Sage
Mega Sage

Hi All,

I have created below flow variable, in my subflow

Anubhav24_0-1722492175310.png

 

 

And under output , i do not see this variable to be sent as output to the main flow.

Anubhav24_1-1722492175416.png

 

Kindly advise.

3 REPLIES 3

RAMANA MURTHY G
Mega Sage
Mega Sage

Hello @Anubhav24 ,

If you want to send input variable as a output to the main flow, you have to create that variable again in output variables section. 

 

If you already created a Output variable in Sub flow, you can directly assign that variable to the Flow Variables or any variables in main flow by selecting Data Panel. 

 

Output variables are available on Data Panel for that sub flow

 

RAMANAMURTHYG_0-1722494712331.png

 

RAMANAMURTHYG_1-1722494747967.png

 

 

Please mark my answer helpful  & correct if it helps you
Thank you

G Ramana Murthy
ServiceNow Developer

Mark Manders
Mega Patron

Your screenshots are tiny and unreadable, but are you setting the variable somewhere so it can be used as output?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi @Mark Manders ,

I have created a flow variable in my subflow and setting a value to it based on certain conditions.Flow variable created as below:

Anubhav24_0-1722497611563.png

Now after setting value to this flow variable I need to send it to the main flow.

When I am trying to set the output on this subflow I dont get the option of selecting this flow variable as output variable as below:

Anubhav24_1-1722497677921.png