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

Patch help!

(0) ShareShare
ReportReport
Posted on by 43

Hi,

So I am new to PowerApps, done a lot of Googling to help me to get to where I am now. 

There is one bit I am really struggling with which is using the "patch" function.

 

When I am using the data cards in my patch I put the closing bracket on and it comes up with an error that patch function has errrors and that my datacards couldn't be found and must have been deleted but I can see them in the form. I have tried using the data card values which does not give me an error but when I save the form into my Sharepoint List the new entry is empty.

 

I am beyond confused with this now but am sure I am doing something wrong.

 

Any help would be greatly appreciated!

 

thanks

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Hi Amy,
    If you are using an Edit form, you don't need a patch. Why not use a button with the OnSelect property SubmitForm(Form1) where form1 is the name of your form
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @amydixanne,

    Could you please share more details about the Patch formula within your app?

    Further, could you please share a bit more about the error message?

    Currently, we could use Patch function to create records or modify records in a data source, or merge records outside data source.

    The standard formula format for creating a record or records:

    Patch(
    datasource,
    Defaults(datasource),
    {
    Column1:Value1,
    Column2:Value2,
    Column3:Value3,
    ...
    }
    )

    The standard formula format for modifying a record or records:

    Patch(datasource, BasedRecord, ChangeRecord1, [ChangeRecord2, ...])

    The standard formula format for merging records:

    Patch( Record1, Record2 [, …] )

    More details about Patch function in PowerApps, please check the following article:

    Patch function

    If you want to save your form data into your SP list using Patch function, please check the following article:

    Patch(
     'YourSPList',
     Defaults('YourSPList'),
     {
     Column1: DataCardValue1.Text, 
     Column2: DataCardValue2.Text, 
     Column3: DataCardValue3.Text, 
     ...
     ColumnN: DataCardValueN.Selected.Value,
     ...
     }
    )

    More details about saving form data into SP list using Patch function, please check the following video:

    https://www.youtube.com/watch?v=k3gT-HxUhL8

     

    Best regards,

    Kris

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard