After moving email from one folder to another, sometimes email is not retrieving using internetmessagid

Manoj Acharekar 0 Reputation points
2024-04-02T14:19:54.92+00:00

I am moving email from Inbox to another folder using graph api and after that trying to retrieve same email with internetmessageid, but sometimes it is not retrieving any mail with internetmessageid as filter. I am interested in email weblink of same email after folder movement.

There is enough flow of mails in mailbox.

I am not able to figure out why it is failing for 1 out of 10 cases.

Microsoft. Graph version is 4.54.

var msg=await graphClient.Users["mailbox"].Messages.Request()
.Filter("startswith(InternetMessageId, '"+internetMessageId+"')").GetAsync();

What could be the root cause of this and is there any possible solution?

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

Your answer

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