Flow Designer: Script step not returning outputs

cs2022diatm
Mega Contributor

 

  • What I tried:
    - Used a Script step inside a Flow Designer flow
    - Defined outputs using outputs.name= value`

    What happened:
    - Flow runs, but outputs are not visible in the next step
    - No error in logs, but data doesn’t pass through

     

 

1 REPLY 1

Brad Bowman
Kilo Patron

As there is not a 'Script step' on Flow Designer Flows or Subflows, I assume you're referring to an Action.  If you are using outputs.name in a script step within a custom Action, you need to also define an Output Variable with that same name and the appropriate type

BradBowman_0-1767722833937.png

If you want to view this value in the Flow or Subflow which called the Action, you must also create an Action

Output

BradBowman_1-1767723010894.png

then assign a value to the Action Output (using the data pill from the Script step Output variable

BradBowman_2-1767723112451.png