How do I set Active=False for specific Scheduled Jobs when cloning down from Prod to non-prod instances?

jwelton
Tera Contributor

When cloning down from Prod, we want to preserve the Active state of the Scheduled jobs in the non-prod instances and we want to preserve the REST Messages because they point to non-prod endpoints.

2 REPLIES 2

Weston Wilson
Tera Expert

ServiceNow has post clone cleanup scripts you can run after a clone is performed. https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/managing-data/con...

These scripts are configured on the source (prod) instance and apply to the target (sub-prod) instance after the clone. If you know what data needs to be modified, you can create a script to update the parameters of the REST Messages. If the scheduled jobs aren't already making themselves inactive, you can create another script for setting them to active=false. 

Thanks Weston.  This was helpful.  I have a question - what did you mean by "If the scheduled jobs aren't already making themselves inactive"?  Honestly, I have cloned down before and the scheduled jobs were not active.  The thought the "Clear scheduled job node association" clean-up script took care of that, no?