Flow Designer: Script step not returning outputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2026 10:56 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2026 10:12 AM
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
If you want to view this value in the Flow or Subflow which called the Action, you must also create an Action
Output
then assign a value to the Action Output (using the data pill from the Script step Output variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @cs2022diatm ,
Make sure there are no errors in your script by testing it in a Background Script or by adding logs at appropriate places.
Follow these steps in your Flow Action:
- In the Script step, ensure the output variable is created in the Outputs section with the correct type.
- Assign the value directly to the outputs object, for example: outputs.result = 'XXXXX';
- In the Action Output step, create an output variable and map the result from the Script step by dragging and dropping the corresponding data pill from the right-hand pane.
Remember to remove any logs once the issue is resolved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hey @cs2022diatm ,
I think you're taking about inline script. If yes, then you don't need to set output or anything just write "return varaible_name" and that's it.
Refer to screenshot below:
If you find my answer helpful then please mark it helpful & accept this solution.
Thanks,
Utpal
