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 / Using Patch to SP list
Power Apps
Answered

Using Patch to SP list

(1) ShareShare
ReportReport
Posted on by

I am curently using the following to add records to SP which works great.

Patch(PIOT,Defaults(PIOT),Form2.Updates,Form3.Updates,Form4.Updates,Form5.Updates)

Whats the best way for me to know it has posted succesfully to SP and get a pop up saying successful?

 

Thanks in advance

Categories:
I have the same question (0)
  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at

    Good question. Unfortunately, the documention is thin on areas such as error handling. But perhaps try the following:

     

    Patch('data source name', ...);If(Not(IsEmpty(Errors('data source name'))),Navigate(ErrorScreen,ScreenTransition.None),Navigate('Success Screen',ScreenTransition.None))

     

    Of course, the above is navigating to different screens, replace the navigate with calls to the notify function to get a banner at the top of the current screen.

     

     

     

     

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

    Hi @BenGillard,

    Do you want to check if the Patch formula executes successfully?

    Based on the needs that you mentioned, I think the Errors function could achieve your needs. I have made a test on my side, please check the following workaround:1.JPG

    Set the OnSelect property of the "Patch" button to following formula:

    If(
    IsEmpty(Errors('20190108_MainList', Patch('20190108_MainList', Defaults('20190108_MainList'),{Title: "PowerApps"}))),
    Notify("Patch Record Successfully!",NotificationType.Success),
    Notify("Patch Record Failed!", NotificationType.Error)
    )

    On your side, you should type following:

    If(
     IsEmpty(Errors(PIOT, Patch(PIOT, Defaults(PIOT), Form2.Updates, Form3.Updates, Form4.Updates, Form5.Updates))), 
     Notify("Patch Record Successfully!", NotificationType.Success), 
     Notify("Patch Record Failed!", NotificationType.Error)
    )

    Please check the attached GIF screeshot for more details:

     

    More details about Errors function, please check the following article:

    Errors function

     

    Best regards,

    Test.gif

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard