Auto close changes records

Akhil32
Tera Contributor

Hi Team,

Here is my use case:

“Auto-close any change record that has been in the Implement state for more than 24 hours after its planned end date and time has passed. The change should be closed with the close code Unsuccessful and the close code reason Abandoned.”

Need some suggestions to implemented this, I know we do it via scheduled script. is there any other way to achieve this using flow designer. not familiar with flows

Give some suggestions
8 REPLIES 8

Dr Atul G- LNG
Tera Patron

This is not a good approach, especially from a change management perspective. A change should not be automatically closed immediately; it should only be closed after the Review state is completed. The reason is that the change must go through the PIR process.

Also, what happens if an agent fails to update the state of a change even though the change was implemented successfully? And what about changes that look successful on paper, but fail in reality? Are we going to revert those even though the change was marked as unsuccessful?

There are many open points here. We should first focus on defining and fixing the process. Once the process is clearly set up, then we can move forward with a technical solution.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Thanks, Atul.
I had the same concerns. If the planned end date has passed while the state remains Implement, we should exclude that change record, assuming the assignee has not taken action.


Hi @Akhil32 

 

Marking the change as unsuccessful is not the solution here. This is a process question first, my friend. Once the process is clearly defined, the platform can support it much better.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@Akhil32 

approach using flow is already shared by @tiagomacul 

please try that and share us feedback

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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