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 / Bulk Records into CDS ...
Power Apps
Unanswered

Bulk Records into CDS Table

(0) ShareShare
ReportReport
Posted on by 6

Hello,

In my PowerApp, I am trying to record data from collection as below:

Screen1: I am collecting data in collection called "Shoppingcart". 

Screen2: Now I have selected products with specifications in my cart shown with Gallery and "Text Input" box to insert quantity (using patch function to enter quantity in collection called "Shoppingcart" )

Screen3: Overview of selected products with quantity. final "Shoppingcart". 

on screen 3, I have a button to submit this order (record data in CDS Table "PlacedOrder"). 

I have tried 2 formulas as below but it did not worked. (Column name and type is exact same in Collection "Shoppingcart" & CDS Table "PlacedOrder" )

Formula 1:

ForAll(
Shoppingcart,
Patch(
PlacedOrder,
Defaults(PlacedOrder),
{
ID: RPNr_1.Text,
Beschreibung: Beschreibung11.Text,
BestellteMenge: BestellteMenge_1,
Customer: UserName1_2.Text,
}
)
)

 

Formula 2:

Collect (PlacedOrder, Shoppingcart)

 

Could you please help me to solve this problem.

Thank you very much!! 

Categories:
  • rbrooks66 Profile Picture
    143 on at

    I don't know how your form is set up, so this may not work for you.  I have an Entry Form and I wanted to write it to a staging table in SQL.  I created a Stored Procedure in SQL and using Power Automate called it from the Save button. 

    StoredProcWasteDiversionInsertPreLoadData.Run(
     If(IsBlank(CategoryIdSelected.SelectedText.Value),"NULL", CategoryIdSelected.SelectedText.Value),
     If(IsBlank(CharityId.SelectedText.Value),"NULL", CharityId.SelectedText.Value),
     If(IsBlank(ClientId.SelectedText.Value),"NULL", ClientId.SelectedText.Value),
     DateSelected.SelectedDate,
     If(IsBlank(Dollars.Text),0, Dollars.Text),
     If(IsBlank(EventId.Text),0, EventId.Text),
     If(IsBlank(LocationId.SelectedText.Value),"NULL", LocationId.SelectedText.Value),
     If(IsBlank(SubCategoryId.SelectedText.Value),"NULL", SubCategoryId.SelectedText.Value),
     If(IsBlank(Units.Text),0, Units.Text),
     If(IsBlank(WeightTons.Text),0, WeightTons.Text)
     
    );
    Notify(
     "Successfully Submitted",
     Success
    )

     

     

    Screenshot 2022-04-01 Waste Diversion Form.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard