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 / Trying to patch data f...
Power Apps
Answered

Trying to patch data from collection to sql server

(0) ShareShare
ReportReport
Posted on by 7

I have data in collection trying to patch it with sql db where I want to patch only 2 columns in sql db error sc_3.png

Categories:
  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @umangd ,

     

    It seems that there is a syntax issue with the Patch function.

    If you want to create a record, the formula is like:

    Patch( DataSource, Defaults(DataSource), {...})

    If you want to update a record, the formula is like:

    Patch( DataSource, theRecord, {...})

     

    You could refer to the following link:

    Patch function in Power Apps (contains video) - Power Platform | Microsoft Learn

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard