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 / Add a for loop in Powe...
Power Automate
Answered

Add a for loop in PowerAutomate

(0) ShareShare
ReportReport
Posted on by 29

Good morning.

Greetings.

I'm working on a Power Automate workflow that starts with a Microsoft Outlook email and takes the body of the email.

I need help to be able to add a for loop in Power Automate where I can go through the body of the email and find an email address.

 

I hope you can help me.

 

Thank you so much.

 

Cordially,

Jairo Baleta.

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi Jairo

     

    Are you looking for extracting an email address within the body of received email? Or you want the sender of an arrived email? If you could pls provide sample data to work upon.

     

    Thanks

     

     

  • jairob Profile Picture
    29 on at

    Good afternoon.

    Sorry, the description was suddenly confusing. What I need is to be able to go through the email body line by line until I find a specific text.

  • Verified answer
    takolota1 Profile Picture
    4,980 Moderator on at

    @jairob 

     

    The For loop in Power Automate is called Apply to each and you will need to split the email body text with the split( ) expression to get an array that the Apply to each can work over.

  • jairob Profile Picture
    29 on at

    Thank you very much, Takolota, it already worked for me.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard