Flow Designer - Generic Flow & Create a Task using a custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 07:57 PM
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 Description | Assignment Group | Sequence |
Add | A | Add A | Group A | 1 |
Add | B | Add B | Group A | 1 |
Add | A | Add A - Create profile | Group B | 2 |
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:28 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 11:00 PM
Hi Maik, Any leads on how to do a foreach loop and create a task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 04:04 PM
@Vish4 - Maik makes a great suggestion of using a decision table.
You could loop through the decision table, for each match create a task.