Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lgp+ZtzyTgUlDgg6HvBlbO
Power Automate - General Discussion
Answered

Filter a table by user and date and send e-mail to each user with its respective filtered table

Like (0) ShareShare
ReportReport
Posted on 30 Oct 2023 15:22:14 by 7

Hello!

 

I'm a novice with power automate and was tasked with creating a daily routine of e-mails to suppliers with the payments they've recieved.

 

My first attempt was importing the dataset with the information about the payments to power BI, filter by each supplier name and a formula to acquire the current date, create a hmtl table and send the e-mail with the adresses i was provided.

 

This however is less than optimal, since i have dozens of flows, each doing the same thing but for a different supplier, making any changes a tiresome task.

 

I would like to know if theres a way I can create a single flow that filter the table for each supplier, then send a e-mail for each one with the table filtered by it's name and the date( pay date) that i want.

 

I have:

  • A table with all the suppliers and all the payments during the year i.e.:
Document NrSupplierDue dateDue PayPay dateEffective pay
3847QO4A30/10/2023               2.85027/10/2023               2.850
3847QO5A30/10/2023               2.85027/10/2023               2.850
3847QO6A30/10/2023               2.85028/10/2023               2.850
3847QO7A30/10/2023               2.85028/10/2023               2.850
3847QO8B30/10/2023             34.51127/10/2023             34.511
3847QO9B31/10/2023               3.44427/10/2023               3.444
3847QO10B30/11/2023               3.44427/11/2023               3.444
3847QO11B30/11/2023               3.44427/11/2023               3.444
3847QO12C30/10/2023                  78030/10/2023                  780
  • A table with the specific suppliers, their e-mail adress( some have more than one e-mail)

 

Is there a way to do this?

Thanks in advance, the information in this forum has helped me many times.

  • LucasA2 Profile Picture
    7 on 01 Nov 2023 at 12:12:49
    Re: Filter a table by user and date and send e-mail to each user with its respective filtered table

    Sorry mr. Sudeep.

    It seems the problem was at my end. My original table is quite large (over 200000 rows) and some of the values I was filtering only start showing at the middle/end of the table thus not appering at all in my flow, my challenge now will be reducing the number of rows by filtering during the list rows action (maybe by date) but that's going to be another topic, I suppose.

    Thank you for your solution

  • SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 01 Nov 2023 at 01:30:46
    Re: Filter a table by user and date and send e-mail to each user with its respective filtered table

    Please post a screenshot of your Filter action

     

  • LucasA2 Profile Picture
    7 on 31 Oct 2023 at 12:26:12
    Re: Filter a table by user and date and send e-mail to each user with its respective filtered table

    Hi @SudeepGhatakNZ although your solution does allow me send multiple e-mails to multiple users, the filter action can't capture the main table, returning a blank table in the process. I'm also struggling to add a date filter in the process, as simply chossing the "Pay Date" collumn and writing a date doesn't seem to work.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,318 Most Valuable Professional on 30 Oct 2023 at 15:42:42
    Re: Filter a table by user and date and send e-mail to each user with its respective filtered table

    Hi @LucasA2 ,

    I have used Excel but you can swap it with another database.

    SudeepGhatakNZ_1-1698680474456.png

     

    SudeepGhatakNZ_0-1698680451453.png

    SudeepGhatakNZ_2-1698680547487.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard
Loading started