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 / Iterating through 2 Ar...
Power Automate
Answered

Iterating through 2 Arrays at Once

(0) ShareShare
ReportReport
Posted on by

I have 2 arrays being populated from a Microsoft Form; one has the name of a product and the other is the quantity of the product that a customer wishes to order. For each iteration of the array it is creating a new row in a table.

 

The problem:

Let's say someone entered 2 products and 2 quantities:

Product               Quantity

Hooks                  2

Table                    3

 

Instead of the rows populating:

Hooks          2

Table            3

 

It populates:

Hooks         2

Hooks         3

Table           2

Table           3

 

Any help would be awesome!

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @abyars Can you please upload a screenshot of your current flow. It'll help with troubleshooting. Thx!

  • abyars Profile Picture
    on at

    The problem 100% lies within the nested 'Apply to each' statements, but I don't know what to do instead.

     

    abyars_0-1697490102504.png

     

  • Verified answer
    abouchaalaBAIT Profile Picture
    932 Moderator on at

    Here is your workflow 🙂 

    the exemple is showing 2 arrays [a,b,c] and [1,2,5]

    the output is like you are wondering. 

    a 1

    b 2

    C 5

    ----------------------------------------------------------
    If I have answered your question, please mark your post as Solved. 🆗✔️
    If you like my response, please give it a Thumbs Up. 👍
    You can accept more than one post as a solution.

     

    7.png8.png9.png10.png

     

     

  • abyars Profile Picture
    on at

    This worked flawlessly. Thank you so much!

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard