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.

Workflow help

Jen11
Tera Expert

Hello,

 

We have  a catalog item with an "Existing Approver" field which is not mandatory and a 'New Approver" field which is mandatory. 

Jen11_0-1711473234536.png

 

Right now the workflow is as follows: Both the "Existing Approver" and "New Approver" needs to approve before a TASK is created. 

 

Jen11_1-1711473739262.png

 

I would like to change the workflow to the following:

If "Existing Approver" is empty, then only the "New Approver" needs to approve before a TASK is created.  How should I go about changing this?

Thank you. 

2 REPLIES 2

SanjivMeher
Mega Patron
Mega Patron

I think it should work as it is. If the Existing Approver is empty, it shouldnt generate an approval record. So only New Approver will approve.


Please mark this response as correct or helpful if it assisted you with your question.

James Chun
Kilo Patron

Hi @Jen11,

 

It should still function but the workflow will throw an error.

e.g.

JamesChun_0-1711480219583.png

 

To prevent this, you can add a simple condition to the 'existing approver' child activity as something like:

JamesChun_1-1711480282216.png

 

Cheers