Outlook Email returned with duplicate IDs

Shivam Singh 5 Reputation points
2024-03-15T04:19:38.0633333+00:00

Hi Team,

We are currently facing an issue where we are receiving emails with the same ID from the API. This is leading to missed captures through our request since there are two different emails received with identical IDs. The ID is crucial for us to distinguish between unique emails.

We kindly request your assistance in resolving this scenario to ensure the accurate capturing and storage of emails without any duplication. Your prompt attention to this matter is highly appreciated.

Example ID we receive in the API response highlighted in bold:

{

"@odata.etag": "W/"CQAAABYAAACSfMzaqyWjQalHSlfhEdKGAAUfklg9"",

"id": "AAMkAGRkNjc0NzUzLWUwZTgtNDYzYy04MmVjLTA3YjVlMzU1YjA0MgBGAAAAAACFjOkrM98TSoI-VaEXxqZLBwCSfMzaqyWjQalHSlfhEdKGAATa7CZmAACSfMzaqyWjQalHSlfhEdKGAAUgcrVtAAA=",

"receivedDateTime": "2024-02-22T01:43:11Z",

"subject": "ApexOne - Import & Export Branded Mobile Phones & Original Accessories",

"isRead": true,

"from": {

"emailAddress": {

"name": "MobileSources.Net",

"address": "*** Email address is removed for privacy ***"

}

}

},

Shivam

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,615 questions
{count} vote

3 answers

Sort by: Most helpful
  1. awijekoon 950 Reputation points Microsoft Vendor
    2024-03-16T04:56:08.9733333+00:00

    Hi Shivam Singh

    How did you receive these message ids, is that from 3rd party service/app? Usually, a message ID cannot be duplicated. I would suggest retrieving the message using message/{id} api using graph explorer or similar method. Then, you could determine the exact message that this ID corresponds to


  2. Christoph Ripp 0 Reputation points
    2024-04-08T15:37:24.5833333+00:00

    I can confirm the issue. We also access the Graph API directly and parse the JSON ourselves. I noticed that there were missing mails in our system. I then looked at the result manually using Postman and found that two completely different mails from the inbox have the exact same ID.

    A special aspect: We set the value IdType="ImmutableId" for the "Prefer" field in the header of our request - maybe the problem is in the function.

    The problem does not occur often - so far I have only noticed two mails with the same ID.

    0 comments No comments

  3. Shivam Singh 5 Reputation points
    2024-04-18T05:24:35.9633333+00:00

    Please help me too if you get a solution to this

    0 comments No comments