Handling two task before request closure
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19 hours ago
I have a requirement where I have to generate two tasks, but problem is occuring I am creating first task after requested item so after marking it as closed complete request and ritm also getting closed complete, added wait for condition in the flow still unable to do it, request and requested item should get closed complete only after closure of second task..How to achieve this??
I am adding image of created flow for the request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19 hours ago
Hi @sb001062267 ,
Please Find the below explanation -
- The Update Request and RITM actions are likely inside the same branch that executes after the first task closes.
- The second task creation and wait might be in a separate branch or not properly chained, so the flow completes the first branch and closes the RITM prematurely.
How to fix it:
You need to sequence both waits before updating the Request and RITM. Here’s the correct approach:
Solution Steps:
- Create Task 1 → Wait until Closed Complete.
- Create Task 2 → Wait until Closed Complete.
- Only after both waits are satisfied, update the Request and Requested Item to Closed Complete.
step-by-step configuration for your ServiceNow Flow Designer -
to ensure the Request and Requested Item close only after the second task is completed:
1. Trigger
- Trigger: Service Catalog → Requested Item Record
- This is already set in your screenshot.
2. Create First Catalog Task
- Action: Create Catalog Task
- Configure:- Table: Catalog Task
- Short Description: e.g., First Task for CSP Global Logon
- Assignment Group / Assigned To: as per requirement
- Parent: Requested Item (use data pill from trigger)
 
3. Wait for First Task to Close
- Action: Wait for Condition
- Configure:- Table: Catalog Task
- Record: Use data pill from the first task creation
- Condition: State → is → Closed Complete
- Timeout: Optional (e.g., 7 days)
 
4. Create Second Catalog Task
- Action: Create Catalog Task
- Configure:- Table: Catalog Task
- Short Description: e.g., Second Task for CSP Global Logon
- Assignment Group / Assigned To: as per requirement
- Parent: Requested Item (same as above)
 
5. Wait for Second Task to Close
- Action: Wait for Condition
- Configure:- Table: Catalog Task
- Record: Use data pill from the second task creation
- Condition: State → is → Closed Complete
- Timeout: Optional
 
6. Update Requested Item
- Action: Update Record
- Configure:- Table: Requested Item
- Record: Use data pill from trigger
- Fields: State → Closed Complete
 
7. Update Request
- Action: Update Record
- Configure:- Table: Request
- Record: Use data pill from trigger
- Fields: State → Closed Complete
 
Important Notes
- Sequence matters: All actions should be in one branch (not in IF/Else).
- Do not put the update actions after the first wait; they must come after the second wait.
- If you want parallel tasks instead of sequential, use Create both tasks first, then add two Wait for Condition actions, and finally add an If → All conditions met before updating Request and RITM.
Please mark as complete and close thread if this is helpful.
Thanks,
Rithika.ch
