[NeedHelp] Get message API fails when the resource id contains "/" symbol

kyno 21 Reputation points
2022-04-16T03:47:32.51+00:00

I find that when my resource id contains "/" symbol, the API of Get message would not return the email content but an error. Although I encode the special symbol to "%2F", it fails as well. Could help to take a look?
BTW, I got the ID by call the search API and I can make sure it exists in my mailbox.
Thanks.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,125 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 39,101 Reputation points
    2022-04-19T06:02:50.147+00:00

    Hi @kyno

    As far as I know, message id does not contain "/" symbol, how did you get your message id? Is it obtained by calling the /messages endpoint?

    194141-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful