Flow Designer Error Handling?

TJohnson
Kilo Explorer

Good Evening guys,

I had a look on Community but haven't really found an answer.

I'm currently working on a Flow that connects to Active Directory (AD) and was building in checks so that if there was any issues with making the changes to AD and potential issues with the MID Server. If an issue was to occur the flow would skip the AD step and generate tasks to manually complete the required changes. This would provide a more consistent experience for customers. 

Upon building it out though I could find a "try catch" option or a "skip on error" option and in my testing, if the MID server is down, the flow errors and doesn't continue. 

Has anyone been able to accomplish the above in Flow Designer?

 

PS. Using Flow as I am not a ServiceNow developer and I've been dumped with the administrative tasks of the platform and to be honest, I understand flow designer more than workflows.

1 ACCEPTED SOLUTION

surajp
Mega Guru

Hi @tjohnson 

You can wrap the action call to AD inside a subflow/flow and call it from your flow using Dynamic Flow. Dynamic flow's data pill has Context record(i.e flow execution record) use the state field of Context record in IF logic to check for error.

Regards,

Suraj

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@TJohnson 

You can try to use flow logic if condition to check error messages in flow designer

Flow Designer - Process on Action error

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks for replying. Unfortunately though I experience the same as OP in link you posted in which the flow doesn't reach the logic IF condition and errors out before it reached the condition

Hi,

Unfortunately I haven't explored much.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hii I want to create catalog task when the Add user to group status gives error not state of activity how to use error handling in flow.. @Ankur Bawiskar any solution!!!!