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 / Notification on error
Power Apps
Answered

Notification on error

(0) ShareShare
ReportReport
Posted on by

Hi Everyone, 

 

@PowerAddict  @mdevaney and others, is it possible to set notification messages to come out when there is an error on selecting an button. I tried Notify function. But not sure how to set it to come out only when there an error, otherwise to have success message. 

 

e.g On patch function we get server response error (ETAG) time to time. In this case how can we apply this notify()

 

Osmand

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @OsmandFernando 

     

    To configure this, you can use the IfError function as:

    Since, this is an experimental feature, you need to turn on the Formula-level error management feature.
    App Settings -> Advanced Settings -> Formula-level error management -> Enable

    Now, use the expression as:
    IfError(Patch(...);Notify("Data Saved!",NotificationType.Success),Notify("There is an error.",NotificationType.Error))

    Here, the first argument should be the action that you need to check for an error.

    For more details, please refer: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-iferror 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • OsmandFernando Profile Picture
    on at

    @yashag2255 Thank you so much brother

     

    Osmand

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard