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 / Retrieving ErrorKind f...
Power Apps
Unanswered

Retrieving ErrorKind from Errors to useful form for If statement

(0) ShareShare
ReportReport
Posted on by

(preface: I am new to developing PowerApps in general. I got thrown in the deep end by my boss about a month ago haha...)

Hello,

I understand that through the OnSuccess/OnFailure properties of a form, you are able to dictate what happens if SubmitForm() is unsuccessful... unfortunately I have noticed that no such capability exists for Remove()...

For now, I intend to at least inform the user if there are any errors in the data source through Notify() or a label. In any case, I am trying to retrieve the ErrorKind (e.g. ErrorKind.Unknown) from the Error column of the table generated by Errors(), and storing it in some form which an if statement could make sense of, and then trigger an error message to appear to the user.

How do you suggest I go about doing this?

[https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-errors]

Categories:
I have the same question (0)
  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    @GSITtrainee 

    I'd call IfError function. There are some good code samples here.

    https://learn.microsoft.com/en-gb/power-platform/power-fx/reference/function-iferror

    Within the call to IfError, you can lookup the error, Patch the details to a data source, and call Notify to alert the user.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard