web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : EBYIXLE87yfBl04YoD2YQl
Power Apps - Building Power Apps
Answered

Show success message after patch

Like (1) ShareShare
ReportReport
Posted on 8 Jun 2020 18:12:49 by 576

I have a form that uses the patch function on submit.  How do I show a 'Your request has been submitted!' message after the patch function has executed when a new form is submitted?

I have the same question (0)
  • siforibo Profile Picture
    on 26 Apr 2024 at 13:48:29
    Re: Show success message after patch

    I found that there are two probable problems:

    1. Security rules may attempt to assign the system customer to the user. If this occurs, please verify your rules.
    2. If your app utilizes offline mode, it's likely that the system sends data to the local database before synchronizing it with Dataverse. Therefore, if you use multiple patches and one of them utilizes the ID of a record patched simultaneously, there is a possibility of encountering an error.
  • martatracik Profile Picture
    297 on 26 Apr 2024 at 09:41:43
    Re: Show success message after patch
    i have the same...
  • siforibo Profile Picture
    on 18 Apr 2024 at 12:44:07
    Re: Show success message after patch

    I have a problem, this function is returning "Your request has been submitted"

    but in dataverse table i found nothing. t giv to users role to create and edit and write on that table.

  • Community Power Platform Member Profile Picture
    on 07 Jun 2023 at 15:01:17
    Re: Show success message after patch

    NotificationType.Failure isn't a valid option. The correct syntax is NotificationType.Error

     

    Check the Notify function documentation. Notify function in Power Apps - Power Platform | Microsoft Learn

  • Community Power Platform Member Profile Picture
    on 24 Feb 2023 at 17:51:18
    Re: Show success message after patch

    This is almost working, but the app won't recognize the .Failure piece, even after switching to NotificationType.Failure. Any suggestions?

  • abbyltorres Profile Picture
    4 on 01 Dec 2020 at 18:22:00
    Re: Show success message after patch

    There's also a "Success Message" field on the Entity Form where you can simply add the desired message. 

  • ahhollan Profile Picture
    576 on 08 Jun 2020 at 19:22:10
    Re: Show success message after patch

    I had to change Notification to NotificationType, but once I did that it worked. Thanks for all the help. You are always helpful and quick to respond.

  • Verified answer
    mdevaney Profile Picture
    29,987 Moderator on 08 Jun 2020 at 18:51:01
    Re: Show success message after patch

    @ahhollan 
    Right!  I didn't read carefully enough.  Here's the code for PATCH.

    Set(varRecord, Patch(your_code_here));
    If(!IsBlank(varRecord),
     Notify("Your request has been submitted!", Notification.Success),
     Notify("Your request was not submitted", Notification.Failure)
    );

     

    ---
    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."

  • Community Power Platform Member Profile Picture
    on 08 Jun 2020 at 18:45:47
    Re: Show success message after patch

    @ahhollan I used this video to do a similar functionality of one of my projects. https://www.youtube.com/watch?v=SaDEVOgOlYY&list=PLcwrIWK7WBcRyFBAFeC-Ws8kJYAGTc8Qi&index=16

  • ahhollan Profile Picture
    576 on 08 Jun 2020 at 18:43:22
    Re: Show success message after patch

    This formula doesn't work since I'm using the patch function and not SubmitForm.  I'm seeing a lot about using updatecontext, but I haven't fully figured that out yet.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete