Error handling in Remove Function of PowerApps is not working properly

Copper Contributor

Hi Techies,

 

We are trying to implement error handling for Remove function in PowerApps using Errors() function and it seems, it is not working properly for us.

Scenario:

We have built a PowerApps for SharePoint custom list. Our requirement is to capture the error, if user who is trying to delete the record is not having required permission to delete an item from the SharePoint list.

 

As shown in the below error screenshot, it always shows option 1 i.e. "Request deleted successfully..." irrespective of User is having permission or not to do it. Although, it is not removing the item from the gallery but it always shows success message and Errors() function is not capturing the error in this case.

 

RemoveFunctionIssue.png

 

Please let us know what we are doing wrong here and what is the best way to capture errors for Remove function in PowerApps.

 

Thanks,

Kris

 

 

0 Replies