These are chat archives for gautamsi/ews-javascript-api

May 2017
May 26 2017 12:12

Hi @gautamsi I am trying to find a certain folder using the API, and I am using the following code:

exchangeService.FindFolders(ews.WellKnownFolderName.Root, /* Search Filter, */ new ews.FolderView(100)).then((respFind) => {
     respFind.Folders.forEach((f) => {
         console.log('folder ----> ' + f.DisplayName);

This code lists all folders. I would like to filter the search with display name of the folder. I can make an if check inside for, but I would like to use search filter. However, I could not find out how to create a search filter and use it. Could you give a simple example for it?