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 / repeating flow steps f...
Power Automate
Unanswered

repeating flow steps for data extraction from email to excel

(0) ShareShare
ReportReport
Posted on by 2

I just finished my first flow. It extracts data out of an email and populates an excel spreadsheet.  The one piece I can't figure out is how to make some of the flow steps repeat when there are multiple sets of data in a single email.  For example, i'm tracking order numbers, part numbers and error messages.  one order may only contain data for a single part where the next order may have data for five part numbers.

 

thanks in advance for your help!

 

Categories:
I have the same question (0)
  • harshdeol Profile Picture
    441 Moderator on at

    Hi @crylo678 ,


    You can use loops to repeat certain steps based on a condition. Please use the "Apply to Each" Action to iterate over the extracted data. This is where you handle scenarios where there are multiple sets of data in a single email.

     

    If you will provide the more details, I will be happy to help you further.

    ---------------------------------------------------------------------------------------------------------------------

    If your question got an answer, please click "Accept as Solution "✅, If you liked my answer, please hit the "thumbs-up" 👍button.

    Thank you,
    Harsh Deol 

  • crylo678 Profile Picture
    2 on at

    here is a snip of my flow, first step was when an email is received.  I need the apply to each to occur for all of these compose steps as well as the add row to excel.  Does the apply to each go at the beginning or at the end?  

    crylo678_0-1705938154666.png

     

  • harshdeol Profile Picture
    441 Moderator on at

    Hi @crylo678 ,

    Please add the "Apply to each" in the beginning and configure it to iterate on Array values. All the required Actions should be inside the Apply to each. For more information, please refer to following Microsoft documentation: Use the apply to each action in Power Automate to loop through an array of items. (contains video) - Power Automate | Microsoft Learn

     

     

    -------------------------------------------------------------------------------------------------------------------------

    If your question got an answer, please click "Accept as Solution "✅, If you liked my answer, please hit the "thumbs-up" 👍button.

     

    Thank you,
    Harsh Deol

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard