Graph do not returns first email of the branch

Open
#1,610 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start by reproducing the Microsoft Graph GET request using @microsoft/microsoft-graph-client version ^3.0.6 and compare the returned messages with the expected thread contents. Determine whether the missing first message originates in the SDK or the Graph API; done means a confirmed cause and either a focused SDK fix or documented upstream behavior.

Written by the indexing model from the issue text.

Description

Bug Report

Description

Microsoft Graph API does not return the first user-sent message in a thread initiated by the user.

Console Errors: N/A

Screenshots: N/A

Steps to Reproduce

  1. Use the following GET request to retrieve emails: GET https://graph.microsoft.com/v1.0/me/messages?$search="(to:username@companyname.io OR from:username@companyname.io) AND received>=2023-11-01 AND received<=2023-11-19"&$select=subject,toRecipients,from,ccRecipients
  2. Observe that all emails meeting the condition are returned except for the very first message in a thread initiated by the user.

Expected behavior: The Microsoft Graph API should return all emails meeting the specified condition, including the very first message in a thread initiated by the user.

Actual behavior: The API does not return the first user-sent message in a thread initiated by the user.

Additional Context

A similar issue was discussed in this thread: Link to Discord Thread

Usage Information

Request ID - N/A (No Graph API error response received)

SDK Version - "@microsoft/microsoft-graph-client": "^3.0.6",

  • Node (Check, if using Node version of SDK)

Node Version - "@types/node": "^20.3.1", "ts-node": "^10.9.1",

  • Browser (Check, if using Browser version of SDK)

Browser Name - N/A

Version - N/A

Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.