Flow Designer - Generic Flow & Create a Task using a custom table

Vish4
Tera Contributor

Hi All,

 

Looking to create a generic flow designer. Basically, created a custom table with rules on when tasks should be created with the below view:

 

Type of Request (Input)Type of Application (Input)Short DescriptionAssignment GroupSequence
AddAAdd AGroup A1
AddBAdd BGroup A1
AddAAdd A - Create profileGroup B2


In this scenario, if a case is created for Add - A then there should be two tasks and if B is selected, 1 task should be created.

 

The flow I created has these steps:

 

- Trigger (when a case is created)

- Look up records (Gliding into the task flow table to retrieve the list of tasks for that scenario)

- Foreach loop and Create a task

 

Is there a better way to do it?

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

In ServiceNow we have decision tables for such rules and output actions based on the rules. Please have a look on the following page where I have collected everything around that topic: https://www.servicenow.com/community/now-platform-articles/platform-decision-management-knowledge-am... 

Vish4
Tera Contributor

Hi Maik, Any leads on how to do a foreach loop and create a task? 

@Vish4 - Maik makes a great suggestion of using a decision table. 

You could loop through the decision table, for each match create a task.