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 / Need to submit multipl...
Power Apps
Answered

Need to submit multiple records to sharepoint list with one button

(0) ShareShare
ReportReport
Posted on by 6

Hi Community!

I have a custom form that has 5 sets of controls so it looks like this:

Monday Date | User| dropdownA | textboxA | dropdownB | textbox B

Tuesday Date | User| dropdownA | textboxA | dropdownB | textbox B

Wednesday Date | User| dropdownA | textboxA | dropdownB | textbox B

Thursday Date | User| dropdownA | textboxA | dropdownB | textbox B

Friday Date | User| dropdownA | textboxA | dropdownB | textbox B

 

Because all entries will be submitted at once I would like the best way to patch the records above to the sharepoint list, and each entry needs to be a separate record because a user may need to go back and edit a specific date. Right now my submit button has 5 patch statements - one for each record - and 5 sharepoint error checks - one for each patch statement. But I feel there has got to be a better way to handle this.

 

HELP!?!?

 

Thanks,

DBMSPA

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @DBMSPA ,

     

    You could try:

    Collect(
     YourSPList,
     ForAll(
     Table({Value:Monday Date},{Value:Tuesday Date},{Value:Wednesday Date},{Value:Thursday Date},{Value:Friday Date}),
     {
     DataColumn:Value,
     UserColumn:User,
     DropDownAColumn:dropdownA.Selected.Value,
     textboxAColumn:textboxA.Text,
     ……
     }
     )
    )

     

    Best Regards,

    Bof

  • Verified answer
    PaulD1 Profile Picture
    2,914 on at

    The suggestion above from @v-bofeng-msft is more concise code in that there are not five separate patches, but under the hood I believe the App will behave the same way, i.e. making 5 independent calls to SharePoint to save each of the five records and any of those calls could potentially fail. You can use the Monitor tool to see what actions the App is taking and I believe you will see 5 separate 'create row' actions, just as you do with 5 separate patch statements.

    If you are trying to improve performance and/or wrap the calls into a transaction (so either all succeed or none succeed) then I'm afraid you are out of luck. You need to look to more sophisticated platforms for such features.

  • DBMSPA Profile Picture
    6 on at

    Thank you both for your replies, @v-bofeng-msft and @PaulD1. I may try Bof's suggestion but I feel Paul is probably correct in what will be the end result.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard