Can I rerun flow designer

Revathi11
Giga Contributor

Dear Community, 

I had a flow designer execution with error. I corrected the error and I would like to run the flow designer again. Is there a way to rerun the flow designer again? I know this feature is available for workflows but not sure how i will do this with flow designer. 

Thank You

6 REPLIES 6

Hi @Ravi Kiran2 ,

 

Did you find a solution for your mentioned scenario?

Would you mind to share?

sachin_namjoshi
Kilo Patron
Kilo Patron

You can call FlowAPI from background script to trigger your flow.

Use below sample script to execute flow

 

(function() {
	try {
		var inputs = {};
		inputs['current'] = ; // GlideRecord of table:  
		inputs['table_name'] = 'incident';

              // Execute Synchronously: Run in foreground.
              // var timeout = ; //timeout in ms
              //sn_fd.FlowAPI.executeFlow('global.test_flow', inputs, timeout)
              sn_fd.FlowAPI.executeFlow('global.test_flow', inputs);
	} catch (ex) {
		var message = ex.getMessage();
		gs.error(message);
	}
})();

 

Regards,

Sachin