Return an error from my Remote Event Reciever will not be shown inside sharepoint mobile app

john john 946 Reputation points
2021-03-14T23:43:45.927+00:00

I have the following code to return an error inside Remote Event Receiver:-

SPRemoteEventResult result = new SPRemoteEventResult();  
            using (ClientContext clientContext = TokenHelper.CreateRemoteEventReceiverClientContext(properties))  
            {  
              string ErrorMessage = "Unauthorized update request. You are trying to update resources which you are not authorized to update";  
              result.ErrorMessage = ErrorMessage;  
              result.Status = SPRemoteEventServiceStatus.CancelWithError;  
              return result;  
             }  

but on mobile application i will get this message when the RER fails, instead of getting the above error message:-

77507-231.png

so why the actual error message is not been shown inside sharepoint mobile app?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,249 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,021 Reputation points
    2021-03-15T08:08:43.077+00:00

    Hi @john john ,

    If this issue only exists in the mobile app, I would suggest you submit it in the user voice: https://sharepoint.uservoice.com/. Or you could create a ticket with Microsoft to get delicated support.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments