How to use error handler for flow action while action is used inside the loop

Sivasangeethp
Tera Contributor

In my case I'm using simple flow designer where flow action is defined inside the if loop Like in below picture. 

Sivasangeethp_0-1678368689562.png

Actually, I'm trying to get assignment group based on location from external source via flow action. if action return an error through error evaluation I pointing out that to flow like in below picture.

Sivasangeethp_1-1678368892700.png

The things are when I tried to get action status code from error handler .I'm not able to glide the status code and its greyed out like in below picture.

Sivasangeethp_2-1678369125772.png

if the same action is defined outside the loops, I'm able to glide the action's status code.

Kindly do needful.

1 REPLY 1

Sivasangeethp
Tera Contributor

As per my last conversation with servicenow team . Please use "Error evaluation" and set a condition like below and check the "Don't treat as error" as true and pass value on Action Status Code, Action Status Message and via that we can get the flow is error or not. even though flow action got error via that check box as true it will skip and come to main flow. From there via the flow action status message we will validate.

Sivasangeethp_0-1688985269322.png