Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to monitor workflows for errors?

Eckhard
Tera Contributor

Dear community,

we have ~ 80 service catalog items with 80 workflows that run several times per houre.
If a workflow aborts (script error, task error, etc.) we want to receive a notification, because someone has to investigate then.
I read in the documentation that there is the possibility to check each specific workflow if "red banner" occures (script error) or I can setup an error condition in a script. 
But I need something like an automated check of all running workflows, because I can not check manually every minute all the active workflows if an error occured.

Do you have an idea?

Many thanks

Best regards
Eckhard
P.S.: My build is: Build tag: glide-rome-06-23-2021__patch7a-03-08-2022

1 REPLY 1

Gurpreet07
Mega Sage

Check if its possible using Workflow Context (sys_progress_worker) able. There's a state field over there. You can simply configure a notification in this table.