I have a folder in an Exchange mailbox that is a child of the root (not Inbox).
How do I get the ID of such folder using EWS Managed API?
Only examples I find are those relating to WellKnownFolderNames.
cexchangewebservices
I have a folder in an Exchange mailbox that is a child of the root (not Inbox).
How do I get the ID of such folder using EWS Managed API?
Only examples I find are those relating to WellKnownFolderNames.
Best Answer
You can find all Folders with the
FindFolders
method. UseWellKnownFolderName.Root
to show all your folders of your Inbox. You have to create aFolderView
and add the properties you want to see (ID
andDisplayName
for example). Set the traversal toDeep
to find all of your folders. In my example, I'm looking for the folder with theDisplayName
"Test".