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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an email with lis...
Power Automate
Answered

Send an email with list of pending items

(0) ShareShare
ReportReport
Posted on by 74

Hi Experts,

 

Good day to you, I'm having below flow, which to get the Status equal to Pending of each Items and combine them then send an email. What i'm trying to achieve is if Status not equal to Pending then don't send anything.

 

The problem i have are:

  • if i put Send an email inside a loop, it will return like below screenshot

Email.png

  • If i put Send an email outside the loop then it will send a blank email when Status is not equal to pending.

Any help would be so much appreciated. Thank you !

 

1.jpg

Categories:
I have the same question (0)
  • Verified answer
    powercorner Profile Picture
    477 on at

    Hello @AnPhamEFL ,

     

    you should do it differently. Set the "pendingList" variable to an Array.

     

    In the loop add each pending ID to this array (use the "append to array variable" action)

     

    Then after the loop use a condition to check the length of your array with the expression Len(pendingList)

    If the length is bigger then 0 then send the mail. In order to translate the array to a string you can use another expression "join" -> eg. join(pendingList,' <br>') inside the mail body. 

     

    Et voila!

     

    Tell me if it worked for you 🙂

    With regards
    Kevin

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard