web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Automate - General Discussion
Answered

How to compare a Sharepoint list with a Excel file in Automate

Like (1) ShareShare
ReportReport
Posted on 10 Sep 2021 21:26:15 by 20
Hi everyone,
 
I new in automate and i've been trying to create a flow that compare a Sharepoint list with a Excel file, i have a Excel file with pending tasks ids and the user assigned to each of them, for example:
TasksExcel.png
And i have a sharepoint list with all users and emails into the work team, like:
UserList.PNG
I need to send the ids of their pending tasks to the email of each user in the excel file, I've been trying to do this flow for two weeks, which at first I thought was simple, but the flow always fails me for some reason, I think that the answer is in the use of filters but I don't know how to use them
Thanks in advance!
  • Verified answer
    Ellis Karim Profile Picture
    11,179 Super User 2025 Season 2 on 11 Sep 2021 at 17:35:18
    Re: How to compare a Sharepoint list with a Excel file in Automate

    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:

    ekarim2020_6-1631378772268.png

    This is the high level flow:

    ekarim2020_8-1631379081876.png

    (1) Starting with Get Items and List rows present in a table actions:

    ekarim2020_9-1631379170981.png

    (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:

    ekarim2020_13-1631380550138.png

    (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:

    ekarim2020_15-1631380837165.png

    Example:

    ekarim2020_20-1631382446071.png

    (4) Next we check the output of the Select action to find out if any tasks were found:

    ekarim2020_16-1631380876763.png

    If Yes, we can construct the email text body including a task list in a Compose action:

    ekarim2020_17-1631381193414.png

    And if no tasks were found we construct a different email text in a Compose action:

    ekarim2020_18-1631381212707.png

    Here is a summary of the condition:

    ekarim2020_19-1631381252663.png

     

    Hope this helps.

    Ellis

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete