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 Apps / Patch multiple records...
Power Apps
Answered

Patch multiple records in one row

(0) ShareShare
ReportReport
Posted on by 28

Hello,

I'm trying to build an app in which employees at our company can fill in job sheets and submit them to an excel spreadsheet. So far I've got the patch command to work with my date picker and one of my drop-down lists with separate "submit" buttons but ideally I want them to be able to fill out their jobsheet, hit the "submit" button and have that submit all of the input data to one row (i.e name, date, team leader, client etc) is there a command that can do this or do I have to chain multiple patch commands together? In the case of the latter how would I join these two patch codes together as an example?

Patch(Table3,Defaults(Table3),{'Team Leader': Dropdown2.SelectedText.Value})
Patch('Table3',Defaults('Table3'),{Date:DatePicker1.SelectedDate})

Many thanks
TW

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @twarb 

     

    I though you meant multiple items (i.e. rows) to your datasource.

     

    To patch multiple fields, just extend the record in your patch statement to include all the fields in your record like as follows:

     

    Patch(Table3,Defaults(Table3),{'Team Leader': Dropdown2.SelectedText.Value, Date:DatePicker1.SelectedDate, otherfield: "etc", otherfield:"etc"})

     

    Hope this helps

     

  • twarb Profile Picture
    28 on at

    Hi again @AmDev 

    Many thanks, I'm still a bit new to this so unsure of my way around some of the functions. Once again your wealth of knowledge has saved me; thank you!

    TW

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard