Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Patch versus SubmitForm

Like (0) ShareShare
ReportReport
Posted on 17 Dec 2020 15:50:32 by 310

I am learning that the Patch Function and the SubmtForm does the same in terms of updating the SourceData. What is the difference? and When do I use one versus the other?

Categories:
  • kmw1130 Profile Picture
    936 on 05 Mar 2025 at 19:03:59
    Patch versus SubmitForm
    @Notj
     
    I'm using a Patch to patch my screens, but the only one that is saving to my SharePoint list, is the fist screen, the others are not saving the data.
  • rebeccas Profile Picture
    2,591 on 17 Dec 2020 at 19:10:11
    Re: Patch versus SubmitForm

    Typically I use Patch if:

    Only changing a one or two fields

    Changing or Creating data that is not entered by user (button click updates status or something like that)

    Updating items in a gallery 

    Just can't make my screen layout work in a form

     

    Unless you have a REASON to use Patch then use SubmitForm is my suggestion. 

     

  • notj Profile Picture
    780 on 17 Dec 2020 at 16:32:29
    Re: Patch versus SubmitForm

    In addition to what @mdevaney describes, you can use patch to submit multiple forms.

     

    An example: 

    Patch(
     SharePointSourceList,
     GalleryRecentItems.Selected,
     Form1.Updates,
     Form2.Updates,
     Form3.Updates,
     Form4.Updates);
    Navigate(ScreenSuccess)
  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 17 Dec 2020 at 15:56:44
    Re: Patch versus SubmitForm

    @Canadiansal
    You are correct: SubmitForm and Patch do the same thing.

    SubmitForm - use this to create/update a record when using an Edit Form in your canvas app.
    Patch - use this to create/update a record using data from any inputs not inside an Edit Form.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,769 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard