- Aug 4, 2020
- 1 min read
in this post let us see how can we capture the error details in case of a PATCH function fails. Basically PATCH do not directly return the error details. So, we can make use of Errors function to show the type of error with details. Below is an example snippet on how to use Errors function.
Patch(Students,Defaults(Students),{crecb_name:Blank()},{crecb_emailaddress:"powerassist@gmail.com"});If(IsEmpty(Errors(Students)),Notify("Success",NotificationType.Success),Notify(First(Errors(Students)).Message,NotificationType.Error))In the above example, we have passed EMPTY value to a required field to capture the error details and below are the reference on the outcome


refer https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors#description for more details to know the type of error and it's information


