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 Apps / Patching multiple rows...
Power Apps
Unanswered

Patching multiple rows in a collection into a single row in SharePoint list or is there a better solution?

(0) ShareShare
ReportReport
Posted on by 69

Hi all,

I have created a hardware ordering app, the app works like this:

 

1. Users orders x quantity of a predefined hardware item, this is added as a row in the 'Shopping Cart' collection. Each additional hardware item order is created as a new row in the 'Shopping Cart' collection. Each row costs are totaled up (quantity ordered by item price).

2. The user then reviews the rows of items ordered (gallery view - see image) checks out and completes a few more questions about delivery of the items.

3. The user then clicks 'Submit' and the 'Shopping Cart' rows are patched to the 'Hardware Orders' SharePoint list

4. I then have a Flow that starts an approval process and sends a number or emails each time a new row is added to the 'Hardware Orders' SharePoint list.

 

The issue I have is that the flow initiates each time a new row is patched, and a single order may have multiple rows generating many approvals and emails for a single order. I need to reduce this so that lonely one approval and set of emails (which detail the items patched in the email)  is sent even if there are multiple rows patched. 

 

My thoughts are to try and merge the collection rows into a single row once the shopping cart has been reviewed and then patch this into SharePoint as a single row? Are there any other clever ways of achieving what I need to, perhaps using flow? Any help or advise will be greatly appreciated.

basket_screen.PNG
shopping cart.PNG
Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,658 Moderator on at

    Instead of triggering the Flow from when an item is created in SharePoint, why not trigger the flow from PowerApps

     

    Your approver will get a PDF of the entire shopping cart and they can then approve or reject the entire order?

     

    In your SP List, I will create two lists -

    1. for order header like who ordered, what $ value, when ordered, approval status. This is where I will store PDF as well.

    2. for order details, so for each order ID, what were the individual items.

     

    Edit:

    If you don't like PDF (and/or trigger from PowerApps), then you can have a Flow from when a SharePoint List item is created in order header List. This will be a single row for each order.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard