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

john john 946 Reputation points

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:-


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

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

    Hi @john john ,

    If this issue only exists in the mobile app, I would suggest you submit it in the user voice: 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