Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Flow Designer custom flow

Naveen87
Tera Guru

Hello Developers,

 

I'm building a custom flow for a catalog item.

There are 2 sctask. No.4 & 6.

 

1st time - When 4 is closed, 6 will be created. 

1st time - When 6 is closed skipped, then 4 will be re-opened.

2nd time - Again when 4 is closed, 6 will re-open.

2nd time - Again when 6 is skipped, 4 should re-open, (failed)

This will happen until 6 is closed successfully.

 

Below flow is executing once but failing at 2nd time. How do i make it recursion?

Naveen87_0-1742206826428.png

 

2 REPLIES 2

OlaN
Tera Sage

Hi,

I would advice that you should not solve this with a looping behavior that changes existing closed tasks and reopen them.

Instead, create new catalog tasks if necessary when task on step 6 is skipped.

Dr Atul G- LNG
Tera Patron

Hi @Naveen87 

 

Agree with @Ola , Reopening a closed task is a clear violation of the process and makes the flow more complicated. Either don't close the task or create a new task when required.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************