Watch the video on YouTube: https://youtu.be/TIO9kR2bhog
Sometimes I make videos I have no premeditated plan of making and this is one! My newly built MID server on my Mac was suddenly inactivated due to inactivity and getting it back up and running wasn’t a quick search and fix. So I thought I’d document what I did for anyone else who runs into this issue.
#servicenow #midserver #scripting #troubleshooting
JavaScript code from video:
var mid_server = new GlideRecord('ecc_agent');
mid_server.addQuery('name', 'macos_docker_mid_02');
mid_server.query();
mid_server.next();
gs.info(mid_server.auto_invalidated);
mid_server.auto_invalidated = false;
mid_server.update();
gs.info(mid_server.auto_invalidated);
