Flow action - How to return step status?

Sergey Popov
Tera Expert

Hello,

 

How can I set a Script Step output status (code and message) directly from the script?

See the screenshot.

 

I know that I can add output parameters, but there is a default one called "Step Status". I'd like to set its data without creating additional parameters.

 

Sergey.

3 REPLIES 3

Sergey Popov
Tera Expert

Up!

Sergey Popov
Tera Expert

Up

SohierC
Tera Contributor

It seems that "Step Status" and "Action Status" are reserved objects to handle exceptions and can only be used for error evaluations in the flow.

I tried unsuccessfully to modify the "__step_status__" or "__action_status__" within the script.

But if i throw an exception, it automatically populates the step status object which is then propagated to the action status object with a code = 1 and the message thrown in my exception.

If anybody have a tip/trick for that --> +1