How to re-compile flows and actions without modifying their contentsPlease note It is generally advised to consult with ServiceNow prior to performing these steps.Although re-compiling, can resolve some issues it can also make it difficult to determine the root cause San Diego and Beyond Re-compile a flow: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(); Same as: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(false); To force recompile even if not needed: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(true); To compile a subflow: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().subflow('scope.my_subflow_name').compile(); To compile an action: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().action('scope.my_action_name').compile(); Prior to San Diego The following script is used to re-compile a flow (tablename: sys_hub_flow) or action (tablename: sys_hub_action_type_definition) without modifying their contents. This compilation will occur the next time the flow is executed. gr = new GlideRecord('<tablename>');// TODO add your query heregr.query(); while (gr.next()) { // this won't impact Kingston action/flows which didn't have a master snapshot if (JSUtil.nil(gr.getValue("master_snapshot"))) continue; gr.setValue("latest_snapshot", gr.getValue("master_snapshot")); // setWorkflow(false) so this won't go in updateSets gr.setWorkflow(false); gr.update();}