Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to rollback fix script if cancelled in between

jack33
Tera Expert

Hi All,

 

 

How to rollback update happened due to fix script if cancelled in between, is it possible?

 

 

Thank you in advance

1 ACCEPTED SOLUTION

@jack33 

I think it won't work for cancelled fix scripts

System will roll back only those fix scripts which are in Finished State without error

💡 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

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jack33 

https://www.servicenow.com/community/developer-articles/how-to-rollback-your-modifications-made-by-f...

 @Mohit Kaushik 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0761248

 

*************************************************************************************************************
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/atul_grover_lng [ Connect for 1-1 Session]

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

Hi @jack33 

 

These 2 links will be helpful for you.

*************************************************************************************************************
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/atul_grover_lng [ Connect for 1-1 Session]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@jack33 

if your Fix Script has "Record for rollback" field set as True then only rollback is possible

if not then you can't rollback

How to enable and use rollback functionality for Fix Scripts 

AnkurBawiskar_0-1765545056236.png

 

💡 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

Thank you @Ankur Bawiskar  for quick reply, yes the checkbox is enabled, but can you please confirm it will work for execution cancelled fix script as well?