I need to know how to close change request after 24 hours once all the change tasks has been closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2022 08:16 AM
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
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2022 11:33 PM
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
Final Flow looks like this
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 09:17 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader