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?

6 REPLIES 6

ajmalmuhamm
Tera Contributor

Hi @oluseyiasol ,

The error occurs because a Requested Item (RITM) cannot be moved to Closed Complete while it still has one or more open Catalog Tasks (SCTASKs). ServiceNow enforces this through its out-of-the-box business logic.

Before updating the RITM to Closed Complete, make sure your flow:

  1. Waits for both approvals to complete.

  2. Verifies that all associated SCTASKs are in a closed state (or explicitly closes them if your process requires it).

  3. Updates the RITM to Closed Complete.

  4. Sends the notification email to the required group.

If your flow is creating catalog tasks, use a Wait for Condition (or equivalent) to wait until all SCTASKs are closed before updating the RITM. The email notification can then be sent after the RITM successfully reaches Closed Complete.

yashkamde
Giga 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.