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

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

I tried above suggestion but condition always Evaluates to - False. It looks like the actual state is Complete=ERROR as opposed to Error. Any ideas?

Hey @TJohnson 

Did you get any resolution for this ?