I am currently fetching the WellKnownFolder and then matching with the existing FolderId
. This is basically causing a lot of re-fetches as i'll have to check for each folder and WellKnownFolder.
public boolean isWellKnownFolder(String folderId, WellKnownFolderName wellKnownFolderName) {
Folder f = Folder.bind(account, wellKnownFolderName);
return f.getId().toString().equals(folderId);
Also, is it possible to get a WellKnownFolderName
as an extended property? So i can fetch it along with initial folder fetch.
I am using this api: https://github.com/OfficeDev/ews-java-api