Close the RITM when all related Catalog Tasks are closed (using Flow Designer)

shivatmika_19
Tera Guru

Requirement: Close the RITM when all related catalog tasks are closed using flow designer.

 

Create a flow as follows.

Trigger:

Screenshot 2024-11-30 at 8.23.37 AM.png

 

Actions:

1. Look up catalog task records

Screenshot 2024-11-30 at 8.25.56 AM.png

2. Check if any catalog tasks are not closed complete and end flow

Screenshot 2024-11-30 at 8.28.41 AM.png

3. Update the state and stage fields of RITM record.

Screenshot 2024-11-30 at 8.30.09 AM.png

 

Complete Flow:

Screenshot 2024-11-30 at 8.31.12 AM.png

 

1 ACCEPTED SOLUTION

Ashish Parab
Mega Sage

@shivatmika_19 ,

 

Instead of creating new flow for closing RITM state, create one subflow with this given action and use it for every catalog item flow. 

 

Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.

 

Thanks and Regards,

Ashish

View solution in original post

4 REPLIES 4

Ashish Parab
Mega Sage

@shivatmika_19 ,

 

Instead of creating new flow for closing RITM state, create one subflow with this given action and use it for every catalog item flow. 

 

Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.

 

Thanks and Regards,

Ashish

Hi @Ashish Parab

The above flow can be applied for all the catalog items, and your solution is also correct but can you say what can be the input and output of the sub-flow you are mentioning. Thanks in advance

Hey @shivatmika_19 ,

 

Yes, you can use this subflow in multiple flows.

 

Use the Requested Item record as an input from the main flow. For this subflow, you do not require any output as you are updating the requested item record in the subflow. If you want count or anything else, then you can use that as an output.

 

ashish_parab_0-1733119158389.png

ashish_parab_1-1733119329508.png

 

Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway. You can mark multiple answers as correct and helpful.

 

Thanks

Ashish

 

PrashantLearnIT
Giga Sage

Hi @shivatmika_19 

 

Anyway flow doesn't moves until the catalog task is closed, so create one sub-flow for closure and add it after joining all catalog tasks to this particular sub-flow.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************