Here is one possible approach to your problem. The flow produces an email message text for each user in the SharePoint List that has a task in the Excel file:
This is the high level flow:
(1) Starting with Get Items and List rows present in a table actions:
(2) We create an Apply to Each loop, and for each SharePoint item record, we will try to find a matching user record in the Excel data. We can use the Filter Array function find and select these user records. Get get all the Excel rows where the SharePoint column user name (TeamUser) matches the Excel column User:
(3) We can use the Select action to select only the Tasks for that user from the Filter Array action. This way we can ignore any other user data we dont need or want to see:
Example:
(4) Next we check the output of the Select action to find out if any tasks were found:
If Yes, we can construct the email text body including a task list in a Compose action:
And if no tasks were found we construct a different email text in a Compose action:
Here is a summary of the condition:
Hope this helps.
Ellis
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2