Share via

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

Saira Munir 125 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 ?

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Authenticator
Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

  1. CarlZhao-MSFT 46,456 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.

    Was this answer helpful?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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