cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
OsmandFernando
Post Prodigy
Post Prodigy

Notification on error

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

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

@yashag2255 Thank you so much brother

 

Osmand

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,467)