Auto closure of related CSM Case task when the parent case is closed

CarolMa6
Tera Expert

Hi All 

 

There is an auto request, requested item, and catalog task related to a CSM case. A flow designer workflow closes the CSM case 7 days after it is resolved. I want to expand the flow to also close related case tasks. How can I do this, and is it the best solution?

 

 

Regards 

Ca

1 ACCEPTED SOLUTION

Vishal Jaswal
Giga Sage

Hello @CarolMa6 

Here is an updated flow which will trigger whenever Case State is Closed and will update associated:
1. Case Task State to Closed
2. Requested Item State to Closed
3. Request State to Closed Complete

vishal_jaswal_0-1741025557096.png


Step#1: Trigger

vishal_jaswal_1-1741025576634.png


Step#2: Action - Look up Records - Parent is (Drag the pill from Trigger - Record Updated - Case Record from right)

vishal_jaswal_2-1741025612692.png


Step#3: Flow Logic - For Each - Items (Drag the 1 - Look up Records > Request Records from right)

vishal_jaswal_3-1741025688672.png
Step#4: Update Record - Record (Drag the pill 2 - For Each > Request Record from right) 

vishal_jaswal_4-1741025780384.png

 

Further Steps:  Repeat the same for RITMs and Case Task or other associated record types

vishal_jaswal_5-1741025848532.png

vishal_jaswal_6-1741025875859.png

vishal_jaswal_7-1741025901776.png



vishal_jaswal_8-1741025916063.png



vishal_jaswal_9-1741025924427.png



vishal_jaswal_10-1741025935033.png



Hope that helps!





Hope that helps!

View solution in original post

6 REPLIES 6

Viraj Hudlikar
Giga Sage

Hello @CarolMa6 

You can just do lookup on case task table by giving parent case number and just update state to desired state you need.

Let us know what have you tried or is there any blocker on same we here to guide you.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards

Viraj Hudlikar.

CarolMa6
Tera Expert

@Viraj Hudlikar there are no records in the case task table, not sure why. 

did the lookup error No Record Found on the 2 step so it doesn't run the rest 

 

CarolMa6_6-1741016608513.png

 

CarolMa6_0-1741016491872.png

CarolMa6_1-1741016506633.png

CarolMa6_2-1741016530441.png

CarolMa6_3-1741016541420.png

CarolMa6_4-1741016562821.png

CarolMa6_5-1741016576903.png

 

 

 

 

 

 

 

@CarolMa6 

are you sure you are querying with the correct field on REQ?

If you get REQ then you can get the RITM using the previous Lookup on REQ

If you get RITM then you can get the SC Task using the previous Lookup on RITM

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar if I understand you correctly, I do get results for the request but not the related ritm or sctask suggestion on what my filter condition should be? 

 

For ritm i used the request sys id as the parent for my condition and there were erors not records found