I want to retrieve a list of messages for user [email protected]
from a sub/child folder of Inbox called Customer emails
. What is the correct URL? I’ve tried various like
https://graph.microsoft.com/v1.0/users('[email protected]')mailFolders/inbox/childFolders/Support%20emails/messages
https://graph.microsoft.com/v1.0/users('[email protected]')/mailFolder('Inbox/Support%20emails')/messages
https://graph.microsoft.com/v1.0/users('[email protected]')/mailFolders/inbox/childFolders('Support%20emails')/messages
https://graph.microsoft.com/v1.0/users('[email protected]')/mailFolders('Inbox/Support emails')/messages
without success, although
https://graph.microsoft.com/v1.0/users('[email protected]')/mailFolders/inbox/messages
https://graph.microsoft.com/v1.0/users('[email protected]')/mailFolders('Inbox')/messages
successfully retrieve the messages in the Inbox
folder. I feel sure that it is possible to use some notation like mailFolder('Inbox/Support%20emails')
to avoid having to obtain the sub-folder id. as an intermediate operation, which would involve having to obtain the Mail.ReadBasic
permission which I currently lack.