Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to compile all "like" records from a table and send a single email?

(0) ShareShare
ReportReport
Posted on by 829

Hello Folks -

 

I have a SP Table that is updated with "change requests" when an end user submits changes through a PowerApps application.  When that record is added to the table, an email notification goes out to the end user with the details. Sometimes, the end user submits many requests and each submission is a new email. In an effort to clean things up a bit, I was wondering if it's possible to recreate my flow to trigger at the end of each day (rather than real time) and send out a single email each row item?

I have many other flows where I create HTML tables and include the updates within the table as it makes for a very clean notification so I can always do that in this case. For instance:

 

hMTLTABLE.png

 

My question is, how do I just compile all row items added "today" from "user"? Would this be something I add to the "Filter Query"?  I'd need to loop through because every day multiple different users are submitting requests. 

Thank you!

  • v-bofeng-msft Profile Picture
    on at
    Re: How to compile all "like" records from a table and send a single email?

    Hi @simms7400 :

    The syntax looks ok,but:

    • The "/" in the column name is unrecognizable. I suggest you to change the name of this field ('Author/Email') in your SP list.
    • 1.JPG
    • The data type of'Author/Email' may also affect the result(I recommend using "Single Line of Text").

    In addition,If you think the soltion I provided before can achieve your needs, please consider marking it as a solution to help others.

    If you want to know more about how Filter Query works. I suggest you consider creating a new post for this.

    Best Regards,

    Bof

  • simms7400 Profile Picture
    829 on at
    Re: How to compile all "like" records from a table and send a single email?

    @v-bofeng-msft 

     

    Thank you!! I have it working, although very primitive.  Currently, the HTML output is only including the "CreatedBy".  How would I include other columns from the list? I obviously can't put in the first select as that would make each row unique...

     

    What I did was add another Get Items and include a similar Filter Query from the first one except this one I include another "And" statement to only pull the records based on the Email...is this the correct way to do this?

    PA_Email.png

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: How to compile all "like" records from a table and send a single email?

    Hi @simms7400 :

    The point is to write Filter Query.Please refer to my earliest reply.

    1.JPG

    Best Regards,

    Bof

  • simms7400 Profile Picture
    829 on at
    Re: How to compile all "like" records from a table and send a single email?

    Thank you! @v-bofeng-msft 

     

    How would I get get items created "today" from my SP list and feed it to your above flow?

  • v-bofeng-msft Profile Picture
    on at
    Re: How to compile all "like" records from a table and send a single email?

    Hi @simms7400 :

    Please try this flow:

    1.JPG

    Reference Expression:

    1\

    union(body('Select'),body('Select'))
    2\
    items('Apply_to_each')?['ModifiedBy']
    3\
    items('Apply_to_each')?['ModifiedBy']
    Best Regards,
    Bof
  • simms7400 Profile Picture
    829 on at
    Re: How to compile all "like" records from a table and send a single email?

    @Paulie78 

     

    Thank you! Yes it does!!  Would you have any examples/screen shots on how to set up steps 3 through 5?

  • Paulie78 Profile Picture
    8,416 Super User 2025 Season 1 on at
    Re: How to compile all "like" records from a table and send a single email?

    This is what you need to do:

    1. Create a scheduled flow.
    2. Return all of the records of change requests made that day.
    3. Filter the results to create a list of usernames only
    4. Union the results of the filter with itself to create a unique list of usernames
    5. Loop around the usernames
      1. Within the loop filter the triggeroutput on username.
      2. Send an email to each user with their change requests for that day.

     

    Does that make sense?

  • simms7400 Profile Picture
    829 on at
    Re: How to compile all "like" records from a table and send a single email?

    @v-bofeng-msftBut your solution will send an email for each row item...I"m looking to send a SINGLE email to the user with ALL of his/her requests for the CURRENT day.

     

    Per my screen shot above, there is a single user who submitted 8 requests. I'm looking for a solution to send that user 1 email with all of the requests, instead of 8 individual emails...

  • v-bofeng-msft Profile Picture
    on at
    Re: How to compile all "like" records from a table and send a single email?

    Hi @simms7400 :

    If you want to get the record of changes that occurred on the day, then just use Recurrence trigger and replace "Created" with "Modified".

    Best Regards,

    Bof

  • simms7400 Profile Picture
    829 on at
    Re: How to compile all "like" records from a table and send a single email?

    @v-bofeng-msft 

     

    Not really.  Let me explain better.  I have a change request table and each time someone submits a change via PowerApps, a record is added to my Change Request SP List.  I currently have a Flow that sends out a notifcations anytime a new record is added.  However, there are times when 1 person makes multiple changes and as a result, gets multiple emails.

    I"m looking for a way to send a single email to the user with all of his/her changes for the current day.

     

    PA_ARRAY.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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1