I need to know how to close change request after 24 hours once all the change tasks has been closed.

Lohith N
Tera Contributor

Hi,

 

I have a requirement that when all the change tasks where closed then automatically after 24 hours change request need to be closed. Can I know how can I achieve this. Please help me with the code or some one please guide on this.

 

Thanks,

Lohith

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Lohith N 

You can achieve this without any scripting using flow designer

Remember to save and Activate the flow before you test

Steps

1) Flow triggers when change_task is closed

2) It then checks if any pending change_task exists under that change request

3) if not then it would use Wait for Duration Action and provide 24 hours as the time; schedule 24x7

4) Then use Update record action to update the Change

Something like this

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Final Flow looks like this

find_real_file.png

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

Regards
Ankur

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

@Lohith N 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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