Sort decision table results

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 08:52 AM
I have a decision table that takes two inputs and returns Short description, Description and Assignment group of one or more tasks (custom table). The decision table also has an integer output to define which order to create the tasks in.
I have a flow defined that is triggered by the insertion of the parent record (custom table). The inputs from the parent record are sent to the decision table and the task details are returned. However, I can find no way to sort the results so that the tasks are created in the defined order.
Any ideas how I might achieve this requirement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 04:26 AM
Did you find a solution for this? I've got a similar problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 10:01 AM
Nope, not yet. 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 01:50 AM
Hi @kchorny
Here is how I got around this, may not be the best way but it works.
It was requested items in my case.
1. You have your decision table with task order
2. In your flow, set 2 variables as below,
Here is the code for the count :
Now you know how many tasks you have and an index to keep track of where you are.
3. In your flow, get the task details using index as input *(remember to wait for completion on your tasks)
and increase the index after processing each task.
4. Add a condition to terminate your loop.
Please ensure to check how this affects performance.