We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

FLOW WITH TWO APPROVALS

oluseyiasol
Tera Contributor

I have a requirement to create a flow that is triggered by a service catalog that has 2 approvals and sends an email to inform a group that the request is task closed complete.

oluseyiasol_0-1784851997844.png

ny issue is that i am getting an error - as stated - error occured against sc_req item.. something about  making sure the all tasks are closed before closing a request.   So obivously i am missing a step here.  What am i missing?

3 REPLIES 3

afeldman
Tera Contributor

Hi @oluseyiasol 

Are you trying to do 1 approval then the other? i.e. person A approved, then approval is requested from Person B?

If so, I believe you need to have Else If on your first approval that is Else If approved then step 6 (Same as step 3, but for approved)

Again doing the same on step 10, having else if approved on your second approval.

 

Hope that makes sense

Tanushree Maiti
Tera Patron

Hi @oluseyiasol 

 

In a happy flow , generally we update record when approval is approved.

 

Validate following highlighted part:

Approval:

  • Add the first Ask for Approval action targeting the requested item or record, selecting the first user or group.
  • Add Flow Logic (If) to check if Approval State is Approved.
  • Add a second Ask for Approval action for the second approver/group.
  • Add another If logic block to confirm the second approval is Approved before moving forward.

 

Task Creation and Email Notification

  • Add a Create Catalog Task action to generate the task for the fulfillment group.
  • Add a Wait for Condition or record check to monitor the task until its State becomes Closed Complete
  • Add a Send Email action configured to send your custom message to the target group informing them that the task is closed complete.
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

yashkamde
Mega Sage

Hello @oluseyiasol ,

 

can you share the screenshot of error,

 

Also as stated in error "making sure the all tasks are closed before closing a request", so are there any sc_task created with ritm plz check, IF yes then close it...

 

If my response helped mark as helpful and accept the solution.