Trigger Approval based on previous task closed in Flow Designer

Deepak Shaerma
Kilo Sage

Hi Community,

I have a requirement that, we have a catalog item and attached to a flow designer to fulfill the requirement. 
there are multiple steps in flow, 
1. Task is created 
2. Ask for approval
3. if approved --> submit catalog item request ---> create task --> update record
4. if reject --> same procedure with different values

My requirement is , i need to ask the approval based on the 1st task, if task is closed and assignment group in the task is A --> then approval goes to the specific user of that group, if it is approved repeat the steps... and same thing i need to do for all the groups, i have 20 groups... is there any script method to call in flowdesigner or call a subflow, any sugeestion

Thanks

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Perhaps for those 20 groups you can use Decision Builder? That can simply designs a lot. 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ok @Mark Roethof sir,

 

Let me try with decision builder.

 

Thanks for your valuable insights. 

Amit Verma
Kilo Patron
Kilo Patron

Hi @Deepak Shaerma 

 

If I understood your requirement clearly, you want the approval to be taken from 20 different assignment groups ?

 

Thanks and Regards

Amit Verma


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

Hi @Amit Verma 

 

I need to ask the approval based on previous task closed, it is achieved via, if task state is closed and assignment group is X then ask for approval to specific user. 

If ask for approval is approved ---> then submit catalog item request(via custom action), update record , create task , update parent record... 

If ask for approval is rejected ---> create task, submit catalog item request, update parent record... 

 

I need to do this again and again for 20 groups.. is there any simple method to do??? Because flow is too much complicated if i repeat these steps again and again in if-else loops.

 

Thanks

Deepak Sharma