FLOW WITH TWO APPROVALS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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:
Waits for both approvals to complete.
Verifies that all associated SCTASKs are in a closed state (or explicitly closes them if your process requires it).
Updates the RITM to Closed Complete.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.