
I am trying to use the folderPath parameter to fetch emails from other folders, but so far I have been unsuccessful.
I can call , with or without leading slash:
Office365.GetEmails()
Office365.GetEmails({folderPath: "Inbox"}).value
Office365.GetEmailsV2()
Office365.GetEmailsV2({folderPath: "Inbox"}).value
Those display the results in a Collection, if I capture them.
But no other paths work. Paths that I know for sure exist, like:
/Sent Items (system folder for sent email)
/IT
/Inbox/O365
/Inbox/O365/Support
/othermailboxwithaccessdelegation@mydomain.com/Inbox (user or shared mailbox that my user has exchange access delegation configured)
Can anyone help me out on why it's not working?
Thanks!
From my experience with GetEmailsV2, you can only retrieve from well known folders, and even at that, there is only a subset of those well known folders that you can use with the Office365 Outlook connector.
Not very clear in the docs, but with a little experimenting and such, that was where I determined this before.
There is no way through that connector (that I am aware of) to specify just any folder name.
I know that is not what you're looking for, but hopefully this is helpful.