cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
U_Idigoras
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
manuelstgomes
Community Champion
Community Champion

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
manuelstgomes
Community Champion
Community Champion

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

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,014)