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

Ravi Peddineni
Kilo Sage

@Admin7267 

Here's the documentation to understand Flow Designer implementation: Flow Designer 

 

If you are still facing specific issue, Just comment in here and 

@Ravi Peddineni, I need help to fire event and include all the approvers of the RITM(approved/rejected/no longer required) in parm2 using FLOW DESIGNER?

 

I have used script to trigger notification mentioned in workflow.

@Admin7267 

 

Could you share the screenshot of the script you've written?

 

Also there's is an option to send an email as an action. Did you explore that instead of event trigger? It makes it easy. I understand if the notification is set up in sys_email already.

Aniket Chavan
Tera Sage
Tera Sage

Hello @Admin7267 ,

I completely understand! I also started out primarily using Workflows and became very familiar with them. Transitioning to Flow Designer can feel different at first, but it has many powerful features that simplify the process over time.

 

Currently, there isn’t a direct way to convert an existing Workflow to Flow Designer, so you’ll need to recreate the functionality manually in a new Flow. Here are some tips to help you convert the elements of your Workflow:

 

  1. Run Script Activity: In Flow Designer, many actions that required scripting in Workflow are simplified. For example, to update a record, you can use the Update Record step without needing a script. Just select the record type and set the fields you want to update.

  2. Set Values Activity: Similar to the update action above, Flow Designer allows you to set values directly in the Update Record step.

  3. Timers or Wait Conditions: If you have timers in your Workflow, you can use the Wait Condition in Flow Designer, which allows you to pause the flow until specific conditions are met or for a set duration.

As you start creating your first flow, you’ll find that Flow Designer offers a more modern, user-friendly approach, especially with predefined actions that reduce the need for scripting. Take it one step at a time, and feel free to reach out for more guidance as you go. Once you get familiar with it, the transition will feel smoother!

 

Good luck, and let me know if you have any specific questions as you work on this!

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.


Regards,
Aniket