- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 07:38 AM
I'm wanting to create a daily scheduled flow which will review active demand records and check to see if there is at least one active stakeholder assigned to the demand record.
Right now I have a look up action which conditionally pulls all the relevant records, however I'm unsure on the best solution to loop through each found record and see if the total number of active stakeholder records is <1.
I built a For Each flow logic but I can only see if the Stakeholder is Active or False, no way to get a total for Active Stakeholders.
Any help would be appreciated.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 10:15 AM - edited 06-14-2024 10:16 AM
I went ahead and mocked up the flow. The overall flow would look something like this, only using incident as an example.
Here is what your flow variable would look like
Here is setting the flow variable to 0
and you can update the count with something like this
here is where you can use that Flow variable to compare against
If you have any more questions, please let me know.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 09:57 AM
You could leverage Flow Variables. In your For each loop, add 1 to your flow variable, then use a condition of If <flow_variable> Is greater than 1, then set your required actions. If you need help with how that would look, let me know and I can mock something up.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 10:15 AM - edited 06-14-2024 10:16 AM
I went ahead and mocked up the flow. The overall flow would look something like this, only using incident as an example.
Here is what your flow variable would look like
Here is setting the flow variable to 0
and you can update the count with something like this
here is where you can use that Flow variable to compare against
If you have any more questions, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 12:23 PM
Hey @Zach Koch,
Thank you for the help on this. I do now have a counter variable but running into issues when attempting to loop through the stakeholder records to see if at least one is active. Seems to be failing at the second for each loop

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 01:05 PM - edited 06-14-2024 01:06 PM
Do you have a screenshot of the error in the flow context where it fails?