'EWS Move Email to Nested Folder

For some reason when I attempt to produce the ID for a nested folder, I don't get any results in the console. Here is my code:

                FolderView folderview = new FolderView(100);
                folderview.PropertySet = new PropertySet(BasePropertySet.IdOnly);
                folderview.PropertySet.Add(FolderSchema.DisplayName);
                folderview.Traversal = FolderTraversal.Deep;

                FindFoldersResults findFolderResults = service.FindFolders(WellKnownFolderName.Root, folderview);

                foreach(Folder f in findFolderResults)
                {
                    if(f.DisplayName == "DownloadedEmails")
                    {
                        Console.WriteLine(f.Id);
                    }
                }

Am I doing anything wrong here? Here is the Mailbox Structure if it helps:

Mailbox Tree



Solution 1:[1]

You either need to do the search recursively - find the top folder (Inbox), then find its child folder (DownloadedEmails) etc. - or (in your particular case), simply open the Inbox folder (it is a well known folder), then find its subfolder (DownloadedEmails).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitry Streblechenko