Graph API: Functional Issues with Web Links Using immutableId on Messages Endpoint

PO-6899 5 Reputation points
2024-12-06T03:14:57.1766667+00:00

I am using the Graph API endpoint (https://graph.microsoft.com/v1.0/users/******@xxxcom.au/mailFolders/Inbox/messages) to access the web link in a shared mailbox. The web link works when I call the API without specifying the immutableId in the header. However, when I include the header request Prefer: idType=immutableId, the web link returned is not functional, and I receive the error message: "This message might have been moved or deleted."

I also tried a similar approach using my own mailbox via https://graph.microsoft.com/v1.0/me/messages, and both web links worked as expected.

I am wondering if the web link with immutableId is not supported for shared mailboxes, or if there is another reason why it doesn't work in this case. Your help would be greatly appreciated. Thank you!

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-06T05:56:51.1566667+00:00

    Hello PO,

    Thank you for reaching out to Microsoft Support!

    According to the documentation, immutableId does not support Mailfolder and is therefore not supported when you access shared mailboxes.

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


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.