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.