cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Run flow for each unique column value in SharePoint list

I have a SharePoint list to log each workers extra hours.

Then I created a Flow that triggers once a month to make some calculations with those hours and send me an email.

 

Let's say my list is something like this:

WorkerExtra hoursTraveled km
Susan4120
Susan1738
James1171
Mike4369

 

Right now, my flow would take every row and do the calculations with all the values. But what I want is to be able to run it once for each diferent worker, so 3 times: Susan, James and Mike.

 

Any idea how can I achive that? Maybe start with a SharePoint query and store the unique values for the field 'Worker', then run the rest of the flow for each value? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Hi @U_Idigoras 

 

I think that could be a solid strategy. Something like this:

 

small-Screenshot_2019-11-11_at_11_13_52.jpg

 

Then you can do the calculations for each element by doing an "Apply to Each".

 

I recommend fetching only the values you need by filtering by the name by doing the following:

 

small-Screenshot_2019-11-11_at_11_18_14.jpg

 

Is this what you need?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

1 REPLY 1
Highlighted
Super User II
Super User II

Hi @U_Idigoras 

 

I think that could be a solid strategy. Something like this:

 

small-Screenshot_2019-11-11_at_11_13_52.jpg

 

Then you can do the calculations for each element by doing an "Apply to Each".

 

I recommend fetching only the values you need by filtering by the name by doing the following:

 

small-Screenshot_2019-11-11_at_11_18_14.jpg

 

Is this what you need?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,517)