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 Apps
Answered

Patch

(0) ShareShare
ReportReport
Posted on by 77

Why is the  patch function used in canvas apps? 

Categories:
  • cds Profile Picture
    1,001 on at

    to make changes to a record in a database

     

  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    To update records in a data source more easily and also important thing is that you can submit record in data source in a single row for the distributed same form on multiple screens you can store individual screen data in temporary collection and submit at last using patch function

     

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Sunidhigambhir1 ,

     

    Patch() function can add/update single/multiple Item(s) to your datasource.

     

    For example:

    Add one item:

    Patch(your datasource,Defaults(your datasource),{Column1:Vaule1,Column2:Value2...})

     

    Update one Item:

    Patch(your datasource,Item that need to be modified,{Column1:Vaule1,Column2:Value2...})

     

    Add multiple Items:

    Patch(your datasource, a table)

     

    Update multiple Items:

    Patch(your datasource, original table, new table)

     

    Best Regards,

    Wearsky

     

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard