Workflow Correction: Creating Manual Tasks/Approvals in RITM (Flow Designer)

mythNOW
Tera Expert

Hello,

 

I have a Catalog Item that is built using Flow Designer. The flow created involves multiple approvals and tasks.  

 

Now this Catalog Item is now in our Production environment, and the workflow automates approval requests based on a specific field.  Sometimes, the field is blank, essentially forgoing the flow, and all approvals/tasks are not generating properly.  

 

I can create approvals/tasks manually, but I want to see how NOW community would handle events like this.  Thoughts?  Thank you everyone!

3 REPLIES 3

Jordan Vignoni
Tera Guru

Could you make the specific field mandatory? This would ensure the field is always populated and your flow will always be triggered.

The project I had did not require mandatory field but called upon this variable to generate the approval.  Since the approval was part of the Flow in Flow designer, the Flow is now hung/stuck and will not proceed.  I would mark this field mandatory in the future, but there are some tickets already submitted in our Production environment that needs correction and updating the variable and restarting the flow is what I need. Thank you!

Check this : 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855865

 

https://youtu.be/EPOsxq4O1dE

 

Refer below doc for Flow API:

FlowAPI

Sample script for running flow from script

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);
	}

If my answer helped you in any way, please then mark it as helpful or correct.