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 / Create new rows based ...
Power Automate
Answered

Create new rows based on amount of array items

(0) ShareShare
ReportReport
Posted on by

I'm trying to create a supply request flow, in which our stores can request supplies through a MS Form and we can save the Item and Quantity in a SQL table. I have been successful in obtaining the items and quantities in their own array using a select function, but now I need to create a row for each item and quantity. Here's a screenshot of the Select function and current array:

 

abyars_3-1698329735487.png

 

 

abyars_0-1698329427361.png

 

 For each item and quantity, I want to create a new row in a SQL table as show below:

 

abyars_2-1698329672857.png

 

Any help would be awesome!

 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,974 Moderator on at

    Hi @abyars 

     

    After your select, use an Apply to each Action, with the input as the output (aka body) of the Select

     

    This will loop you through each set of data

     

    Then use a SQL Action to add a row, using the item()['Item'] and item()['Quantity'] values

     

    You said SQL, but this could mean any back end so I dont know which exact SQL version you mean.

    But if its SQL Server you would use this action

    FLMike_0-1698365326716.png

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

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 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard