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.

Flow Designer

dmahendran
Tera Contributor

Hello Folks,

I have a requirement to build a flow for 8 approval variables in a catalog item. Out of these, variables 1, 7, and 8 are mandatory, while the others are optional. The flow needs to check each variable to determine whether an approver is present. If an approver exists, the approval should be triggered; if not, it should skip and proceed to the next one, continuing this logic up to the 8th approver.

For example, if approvers are present only for variables 1, 5, 6, 7, and 8, then approvals should be triggered only for those variables in that sequence. I need to implement this dynamic approval flow.

I initially tried using multiple if-else conditions in Flow Designer, but it results in too many steps and is not a good practice.



Any assistance would be much appreciated!!!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@dmahendran 

you can use decision table for this

Smarter Assignment Using Decision Tables + Flow Designer 

Populate choices from a Decision Table 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Ankur Bawiskar
Tera Patron
Tera Patron

@dmahendran 

another approach is using flow variables, but need to check how it can be done.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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