I'm trying to process an exchange mailbox and export some of its items to a PST file.
I'm adding a pst store and a new subfolder:
For Each i As Outlook.Store In NSpace.Stores
If i.FilePath = FileName Then
PstRoot = i.GetRootFolder
subfolder = PstRoot.Folders.Add(folderName)
I'm fetching the items from the exchange server (direct connection to it):
Public exch_glob As New Microsoft.Exchange.WebServices.Data.ExchangeService()
itemList_Glob = exch_glob.FindItems(ExchFldrID, BigitemView)
For Each i As Item In itemList_Glob
These parts are working fine.
I'm unable to move a message from the exchange to this PST.
Any help will be appreciated!
What I have tried:
I did try all kind of syntaxes like
and many others, but something is just not right. :(