Hey,
I have a question regarding some strange behaviour when calling the microsoft graph api to move emails from the "inbox" folder to the "recoverableitemspurges" folder.
For our mailbox in question, we are moving emails into the "recoverableitemspurges" folder once they are fully processed by our system.
We do this by calling the graph api endpoint "/users/{userId}/messages/{messageId}/move" with destinationId = "recoverableitemspurges".
This is working correctly for all emails in the mailbox except for one.
For email with id "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0AQf_jhhXIfUOUBNR80F6p8QADXE1jbQAA", we get an error with:
Error code: ErrorAccessDenied
Error message: Access is denied. Check credentials and try again., The store ID provided isn't an ID of an item.
The email is no longer visible when we look directly in the mailbox.
This behaviour is quit strange since we are using the correct credentials for our app/mailbox and have no problem moving other emails for the mailbox.
Furthermore we expect that if the email can not be found for the mailbox, we get an error with:
Error code: ErrorItemNotFound
Error message: The specified object was not found in the store., The store ID provided isn't an ID of an item.
Could you explain why we do not get an "ErrorItemNotFound" error for the failing email id?
Thanks for the help!