web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to list extracted ...
Power Automate
Unanswered

How to list extracted items from SharePoint lists in one email?

(0) ShareShare
ReportReport
Posted on by 29

Hello!

 

We are trying to create a recurring flow that sends reminder emails based on the dates on SharePoint list items.

 

Currently we can successfully extracted the items from SharePoint lists with the below Filter Array. Our conditions are as below.

 

@And(equals(empty(item()?['WrapupFlag']), true),not(equals(item()?['Status']?['Value'], 'Closed')),not(equals(item()?['Status']?['Value'], 'Confirming by Requester')))

 

kazh_0-1681878197147.png

 

 

kazh_1-1681878386605.png

 

However, even though the target items are successfully listed on the email, the same email are sent multiple times.

kazh_2-1681878504558.png

 

So my question is, is there a way to list the items filtered by filter array in one email and send only one email?

 

Thank you very much in advance.

Categories:
I have the same question (0)
  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @kazh 

     

    Receiving multiple emails is because the "Send an email" action is in the "Apply to each" action, so all the items that meet the condition would send an email.

    To send only one email, I have made a simple test for your reference.

    1. Here is the flow, to use the "Create HTML table" to store the items that are filtered from the filter array:

    vpeijunzmsft_2-1681883725196.png

    vpeijunzmsft_3-1681883778751.png

     

    2. Result:

    vpeijunzmsft_0-1681883574285.png

    vpeijunzmsft_1-1681883589446.png

    Best regards,

    Sylvia

  • kazh Profile Picture
    29 on at

    Thank you for your answer!

     

    I now clearly understand why I get multiple emails.

     

    However, the problem remains. 

     

    We need to send emails to PIC, which is a dynamic content and even if we try to express PIC email with the below code, the flow fails at sending email.

     

    kazh_0-1681890374500.png

     

    Is there a way to fill dynamic content to "To" email address without adding apply to each?

     

    Thank you!

  • v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @kazh 

     

    Is the PIC a column from your SharePoint list?

    Is that a person column or single line of text column to store the email?

    If you don't mind, could you please show the screenshot?

     

    Thank you.

     

    Best regards,

    Sylvia

  • kazh Profile Picture
    29 on at

    Thanks for your quick reply!

     

    kazh_1-1681891472586.png

     

    It is a person column!

  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @kazh 

     

    Please try the following ways:

    vpeijunzmsft_0-1681894364913.png

    vpeijunzmsft_1-1681894384603.png

     

    Best regards,

    Sylvia

  • kazh Profile Picture
    29 on at

    Thank you very much!

     

    It works perfectly now!

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard