locked
Reading mails from Search Folder using EWS RRS feed

  • Question

  • Can anyone give some directions on reading emails from search folder using PowerShell and EWS. Reading emails from normal folders like inbox works well, but unable to find any option to get emails from search folders. Appreciate any help to point me in right direction.

    -Edatha-

    Thursday, June 22, 2017 5:06 PM

All replies

  • Not sure if this will help you get an idea, the code is C#, but should be able to be converted to PowerShell.

    Scroll down to Get a Search folder

    https://msdn.microsoft.com/en-us/library/office/dn592094%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396


    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''

    Thursday, June 22, 2017 5:30 PM
  • I am able to find folder but not read the emails in it.

    -Edatha-

    Thursday, June 22, 2017 6:51 PM
  • Search folders are dynamic.  They do not contain items.

    \_(ツ)_/

    Thursday, June 22, 2017 10:27 PM
  • Ok, I got some help from following blog to solve my problem.

    http://gsexdev.blogspot.in/2011/08/using-allitems-search-folder-from.html?m=1


    -Edatha-

    Thursday, June 22, 2017 10:56 PM
  • Hi Edatha,

    did this issue was solved?

    If not, please share the current situation for further help.

    Best regards,

    Andy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, June 27, 2017 6:44 AM