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

john john 1,026 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?

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,136 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.