Why API extract from user folder doesnt show sent items. but they have sent items in their mailbox

Saira Munir 20 Reputation points
2024-09-20T12:46:52.6733333+00:00

Hi,

I am extracting folders for each user from API extract. I cannot see some user's sent items folder. They have this folder available in their outlook but somehow , it doesnt appear in extract . Why ?

I can see inbox , archive , deleted items but sent items is missing . Why ?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,810 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,815 questions
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
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,689 questions
Microsoft Endpoint Manager Training
Microsoft Endpoint Manager Training
Microsoft Endpoint Manager: A Microsoft endpoint management platform that incorporates System Center Configuration Manager and Intune and provides endpoint security, device management, and intelligent cloud actions.Training: Instruction to develop new skills.
11 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 41,941 Reputation points
    2024-09-23T07:16:43.2633333+00:00

    Hi @Saira Munir

    Check if the user’s "Sent Items" folder is hidden. By default, this operation does not return hidden folders. Use the query parameter includeHiddenFolders to include them in the response.

    GET /users/{id | userPrincipalName}/mailFolders/?includeHiddenFolders=true
    

    Additionally, if the returned result set exceeds the default page size (10 items), it will automatically paginate. You can use the $top query parameter to return all result sets in a single page.

    GET /users/{id | userPrincipalName}/mailFolders?$top=100&$count=true
    

    Finally, note that this operation does not return all mail folders in the mailbox but only the subfolders of the root folder. If the user’s "Sent Items" folder is not a subfolder of the root folder, you may also need to traverse the parent folder of the "Sent Items" folder.

    Hope this helps.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.