Flow designer subflow to create a task if there were more then 10 requests raised
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 01:51 PM
I have a subflow what creates 7 tasks normally, but there is a lookup record on the change table with conditions for the Company and other fields, and if it finds more then 10 changes for the given month it leads the flow a different way
but my question is, if there are more then 10 requests for the given month it should create 8 tasks, and if less then it creates 7, but now the solution is that in one way of the flow we have 7 tasks defined and the other 8, even the that those 7 are the same on both ways, so it is possible somehow to simplify it and clarify the tasks creation only 1 for those 7?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 01:55 PM
If I'm understanding you correctly you want to query the change requests, check the amount returned and based off that fire off different subflows? If so, you can just create an if statement after the look up records and check the "Count" returned from that action to see if it meets the threshold.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 01:59 PM
was thinking if maybe a single subflow could do that. As task number 1 we need all the time, number 2 only if we had more then 10, and from task number 3 till 8 again the tasks will be the same, and was thinking if there is a better way than having different subflows or a lookup connected with "For Each Item in" and "if"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 02:02 PM
You want to try to reuse whatever you can to prevent creating similar actions/subflows. I'd need to see more details of your flows configuration to provide more advice but ideally keeping things reusable and simple is your best bet.