Question
1
Replies
22
Views
Starbucks
Posted: July 21, 2020
Last activity: July 22, 2020
RPA - Outlook Connector - Moving Files (not emails) to another outlook folder
We recently received requirements to move email attachments to another outlook folder. I see how to move emails to another directory in outlook, but can we move files?
The manual functionality can be achieved by simply dragging and dropping the attachment at the top of an email, to any directory listed on the side of outlook.
Any ideas?
I found the article below that seems to be something that would work, however it will require some C# coding to get working. The suggestion was apparently to use the MIME Content of the attachment and create a new mail item for it.
https://stackoverflow.com/questions/26502377/moving-email-attachment-to-another-folder-in-outlook
I don't believe this uses interop though. It uses the Microsoft.Exchange.WebServices.Data namespace.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data?view=exchange-ews-api
The code I found there is incomplete and requires some knowledge of that namespace to get working though.
My suggestion would be to simply create a new mail item and attach the files to that. Here is an example of that functionality. It isn't exactly the same as you described, but similar.