Flow Designer Outputs - Action Status

Darryn
Tera Contributor

Historically I have coded my own error handling into a Flow Designer Action but now see there is the Action Status that potentially helps me to automate this process.  But I am struggling to see how to use this feature.

 

In the attached image you see an Action with a step (1) and my original error handling (2).  But I've instead put my focus on the Outputs and I want to drag / drop the object from Step 1 to the Action Status.  But there is no object I can select that will successfully drop into this area.

 

The help specifically states that it must be an "object type pill".  Step Status from Step 1 is exactly that yet the designer rejects it.

 

How do you properly leverage this feature?  Thank you.

4 REPLIES 4

Jamsta1912
Tera Guru

Hi Darryn,

It's over a year later, but I have the same question! Did you find out how to make use of Action Status?

Sean Carvalho
Giga Expert

I am having the same problem in my Tokyo PDI. Anyone know of a solution? I'll just manually create the status object for now I guess.

Joey Alain1
Tera Contributor

Have you tried using the error evaluation section? In each flow action step, the step will complete with a 0 or 1 as a status, and a message. You can define outputs (as you have) if you want to set your own here.

 

Open the error evaluation section instead and add some error conditions. Use them to check against each step for the output values you're looking for. Then again in that same condition, set the built in action status code and message to whaever you want, such as your data pills from the output you built.

 

In this way, you will be conditionally setting the overall flow action status to a code, and message, of your choosing based on what failed. If the intention is to instead return a completely custom result object, then you wouldn't use the built in action status object for that. You would simply build that custom object in the flow steps, or at the end if you wish, and define that as a custom output at the end of the flow action.

 

jasonkist
Giga Guru

Has anyone had any luck with this? Im stumped. I have my flow action working and handling my outputs elsewhere but the system is still throwing an error about the 'message' at runtime.

Flow Action Error: Ignoring message=null because context is already terminal

 

Here is my configuration. When I try to drag the 'step status' pill onto the action status field, the red error displays. Unable to set the code or message fields, greyed out.

jasonkist_0-1709043753781.png

in the action outline, under 'error evaluation', I set a basic condition to see if that would populate, but it doesn't do anything. There's a link to the documentation, but the instructions for setting the action status in the output is vague.

https://docs.servicenow.com/bundle/utah-build-workflows/page/administer/flow-designer/concept/action...