Restart the workflow on a Case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 08:19 AM
I am trying to restart the work flow on case that for some reason, the workflow must have failed as no tasks were created on it.
The workdflow is through the workflow studio so I can't seem to see what happened with the case using the link to see the workflow from the case.
I tried a few variations of scripts to try and restart it and it seems that I am unable to do that probably because of some cross scope security and I can't even create a cross scope entry to try and fix it.
is there some out of the box way to restart a case as if it was just opened or do I just have the person who submitted the case just submit a new one and see what happens?
it seems workflows through the newer studio do not have a way to see what actually happened or if there is how do I see that? Something obviously went wrong with this case and we don't know what and can't figure out why.
All scripts I've found through the community or even using chatGPT were not successful in restarting the workflow studio workflows.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 10:49 AM
In order to see the execution of a flow, flow reporting needs to be enabled. This can be done on individual flows under the settings menu, and creating a record with flow reporting enabled.
In terms of "re-triggering" you can attempt to trigger a flow with the following
(function() {
try {
var caseGR = new GlideRecord('sn_customerservice_case');
if(!caseGR.get('sys_id_here'))
return;
var inputs = {};
inputs['current'] = caseGR; // GlideRecord of table:
inputs['changed_fields'] = ; // Array.Object
inputs['table_name'] = 'sn_customerservice_case';
sn_fd.FlowAPI.getRunner().flow('flow_internal_name_here').inBackground().withInputs(inputs).run();
// Execute Synchronously: Run in foreground.
//sn_fd.FlowAPI.getRunner().flow('global.change__cloud_infrastructure__authorize').inForeground().withInputs(inputs).run();
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();