Forum Discussion
Recovering from a retention policy change. Help
Thanks for this bit. I made significant progress with the EWS script. I am able to connect, find the items, and for the most part, recover them.
The one sticking point is - ideally, I would like to recover them to the folder that they were deleted from - including user created folders within the mailbox. I see the parentfolderid on the message - but it is some long crazy GUID or other unique identifier. I haven't yet been able to tie that to a folder in the mailbox -- am I headed in the right direction? Should that parentfolderid refer to the folder in which the message was deleted from?
Thanks again!
steve
Well, they recently introduced a feature to recover deleted messages to their original folder (https://blogs.technet.microsoft.com/exchange/2017/06/13/announcing-original-folder-item-recovery/), however this does not work with EWS, afaik. You will have to manually check for the parent folder property and adjust the script to perform the move/restore operation accordingly.