I am new to flow.
I am trying to loop through and email each team leader the list of staff,hours,date, timesheet status. This will be scheduled to run on Thursdays.
So far i have created below steps:
-Schedule
-SQL Power Query ( that gives 1 flat table as below + email address + employee code etc.)
Please advice how should i proceed or if there is an alternative better design?
( Note on premise does not support native sql queries , so it was a bit painful to create in Power Query with all the relationships to filter )
E.g. John will get Blue table while Helen will get Pink
| Team Lead | Staff Name | Weekdate | Weekly Hours | Timesheet Status |
| first | | | | |
| John | Alfy | 22/07/2020 | 40 | Incomplete |
| John | Alfy | 15/07/2020 | 38 | Incomplete |
| John | Ross | 22/07/2020 | 36 | Incomplete |
| John | Katy | 22/07/2020 | 38 | Complete/Unsigned |
| second | | | | |
| Helen | Pet | 15/07/2020 | 40 | Not Initiated |
| Helen | Pet | 22/07/2020 | 42 | Incomplete |
| Helen | Pat | 8/07/2020 | 44 | Incomplete |
| Helen | Pat | 24/06/2020 | 46 | Incomplete |