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 / For each not working f...
Power Automate
Unanswered

For each not working for me

(1) ShareShare
ReportReport
Posted on by 8

hi guys sorry to bother you all, I'm trying to go through each Order ID and the run through the SKU lines for each Order ID with a different part of the flow before moving onto the next Order ID. I've tried if statements based on the Order ID is the same but can't get my head around this one at all. I guess you tell me it is a simple fix

IMG_6408.jpeg

Categories:
I have the same question (0)
  • trice602 Profile Picture
    16,135 Super User 2026 Season 1 on at

    Hi @WILKSN ,

     

    Here's where to start.  On the surface, your data is not in a "table" and is going to be first thing you need to fix.  With your cursor in cell A2, press control-t and create a table.  This is typically going to be labeled as Table1.

     

    Then in your flow, use the action List rows present in a table and point to the file and select Table1 as the dataset.  That's going to give the ability to loop through each row.  In your subsequent actions, when you select the dynamic content from your List rows present in a table action, it will automatically wrap itself in a for each/apply to each.

     

     

     

     

  • WILKSN Profile Picture
    8 on at

    thanks so much for coming back to me. have the data in a data table within power automate I just can't get the flow to work through each SKU before moving on to complete the order ID 

  • trice602 Profile Picture
    16,135 Super User 2026 Season 1 on at

    Hi @WILKSN ,

     

    The image of excel you provided is not a table of data - it is a range.  Can you please share your flow?  Without seeing more, kinda guessing here.

     

     

  • WILKSN Profile Picture
    8 on at

    thank you again trice602,

     

    the code is so long ill try and explain what I'm trying to do,

     

    flow logs into website and then,

     

    "for each" row then adds the customer details on first row using Order ID and then gets to SKU and adds the SKU code, quantity and price.

     

    Im trying to get the flow to loop through the SKU's if same Order ID without breaking out to complete invoice.

     

    I don't know how to get the flow to process the customer details using the Order ID and then loop through all SKU for that Ordeer ID before submitting the invoice and start the next?  

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard