How to recompile flows and actions without modifying content<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } Before you begin Consult with ServiceNow before performing these steps. Recompiling can resolve some issues but may make it difficult to determine the root cause. Beginning with the San Diego release To recompile a flow, run this script: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(); This is the same as: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(false); To force a recompile even if not needed, run this script: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().flow('scope.my_flow_name').compile(true); To recompile a subflow, run this script: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().subflow('scope.my_subflow_name').compile(); To recompile an action, run this script: var compiledSuccessfully = sn_fd.FlowAPI.getRunner().action('scope.my_action_name').compile(); Prior to the San Diego release To recompile a flow or action without modifying content in releases prior to San Diego, run the following script. Use the sys_hub_flow table name for flows or sys_hub_action_type_definition table name for actions. The recompilation occurs the next time the flow runs. 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();}