Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Convert Workflow to Flow Designer

Admin7267
Kilo Sage

I have created many workflows for the catalog items and now I want to convert all the workflows to flow designers.

I'm used to workflows and flow designer is new to me, need help to convert one of the WF to FD.

 

I have used run script activity and below code to fire event and updated request field on RITM.

var approvers = [];
	var sysApprover = new GlideRecord("sysapproval_approver");
	sysApprover.addQuery("sysapproval", current.sys_id);
	sysApprover.query();
	while (sysApprover.next()) {
		approvers.push(sysApprover.approver.toString());
	}
	//var catitem = current.cat_item.name;
	gs.eventQueue('ssrm.task.closed', current, '', approvers);
	
current.request = workflow.scratchpad.req;
current.update();

 

How to fire event and include all the approvers of the RITM(approved/rejected/no longer required) in parm2 using FLOW DESIGNER?

6 REPLIES 6

Thank you.

ChristopherSull
Giga Contributor

Thank you so much for sharing thee information.