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 / Need help with For eac...
Power Automate
Answered

Need help with For each loop, Please

(0) ShareShare
ReportReport
Posted on by 10

Hello,

 

I'm new to Power Automate Desktop and I'm trying to build a flow that will extract text from Outlook emails and append them to an excel table.  I'm able to do this but only for one email, even though I'm using a For each loop.  I've reduced my code to a simple flow to try and figure out where I'm going wrong.  I've tried %CurrentItem.Subject% also.  I'm always able to see the first email but not the other emails stored in the %RetreivedEmails% list.

 

Thanks in advance for your help.

 

Screenshot 2022-08-03 091909.png

I have the same question (0)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Have you confirmed your RetrievedEmails is working properly?

     

    I just tried just like you did, but with adding subjects to a list, and it worked fine

    ryule_0-1659559466458.png

     

  • sergalej Profile Picture
    10 on at

    Hello ryule, thanks for looking into this.

     

    Yes, I believe RetrievedEmails is working properly as I'm able to see the 2 emails I'm testing.

     

    I tried what you did, and the result is a list with only one item, the first email.


    Screenshot 2022-08-03 171142.png

     

  • Verified answer
    ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yep interesting. Have you tried building a separate bot from scratch? Potentially something is corrupt, if that's even possible....ha

  • sergalej Profile Picture
    10 on at

    ryule, You're a genius, that worked!

     

    I created a new flow and with the same steps as my previous one and it worked on the first try.  I will consider this solution going forward, equivalent to the "Have you tried restarting your computer?" advice.

     

    Thanks for all the help.

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Haha yay, glad that worked!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 246 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 176

#3
Haque Profile Picture

Haque 157

Last 30 days Overall leaderboard