cancel
Showing results for 
Search instead for 
Did you mean: 

MS Outlook Email VBO - Move Email to Inbox Sub Folder

ManuToivanen
Level 4
I'm automating a process where is a need to move handled emails to another folder that is at the same level with inbox (root level). Basically this means that this target folder is not a subfolder of inbox. I have tried to use "MS Outlook Email VBO - Move Email to Inbox Sub Folder" but it seems to work only if target folder is directly under inbox (subfolder: inbox/handled). Is there a way to use this VBO for this purpose and how should I declare/refer a root level folder?
7 REPLIES 7

david.flores
Staff
Staff

Hello Manu,

In order to accomplish what you want to do with the "Move Email to Inbox Sub Folder" Action of the MS Outlook VBO, you would have to modify/extend the Outlook VBO. However, before doing so, please be sure to review the following KB article posted on our BP Portal to ensure you reviewed your options before making any custom changes.

In addition, here is some general guidance to accomplish what you want to do, if you decided to extend your MS Outlook VBO.

  1. Save a copy of the MS Outlook VBO to "MS Outlook VBO - Extend" or a standard naming convention of your choosing.
  2. Within the new "MS Outlook VBO - Extend" version of your object, make a duplicate of the "Move Email to Inbox Sub Folder" action and call "Move Email to <enter new name> Sub Folder"
  3. Within the new Action you created you can use the following links to help modify the "Enumerations" value to your choosing.
    1. https://docs.microsoft.com/en-us/office/vba/api/outlook.oldefaultfolders
    2. https://docs.microsoft.com/en-us/office/vba/api/outlook.namespace
    3. Please be sure to test and test some more.

 Hopefully this helps.



------------------------------
Regards,

David Flores
Sr. Product Consultant
blue prism
------------------------------
Regards, [FirstName] [LastName] [JobTitle] [CompanyName]

Hi David,
Thanks for sharing the above. I have tried going through it and I can't seem to get this working.  I'm using a shared email and receiving the items.  A few questions for you......

1)  My received emails get them from a subfolder.  How do I move something from a subfolder to a lower subfolder? Or just from a sub folder to another sub folder?  Any ideas?  
2)  How do you know what your oldefaultfolder is?  The link you provided shows the standard ones.  How do you obtain what subfolder ID is?

So in the screenshot below it is setting the inbox as the IBC_FMD..... instead of my Jonathan_R_Holsti.......and getting the emails from MCC Input.  I want to read those emails (this is working) and then move them to another subfolder. I've tried both moving to MCC Exceptions on the equal level or MCC Exceptions as a subfolder within MCC Input.  Neither is working.

31104.png


------------------------------
Jonathan Holstine
Systems Accountant
Interior Business Center
America/Denver
------------------------------

expertcr
Staff
Staff
The most recent version of MS Outlook VBO already has the option to move to any folder in Outlook. It is available in the DX (https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-outlook-vbo)

31105.png

------------------------------
Luis Lopez
Customer Support Engineer English and Spanish
Blue Prism Ltd
------------------------------

Hi Lopez 

I am facing issues while using Move item in Ms Outlook VBO. Whenever I try to move mail from one folder to other I get an error" Unable to locate folder". Can you help me on this ?

------------------------------
Surendharan Kuganesan
------------------------------

@SurendharanKuga,

​How are you specifying the destination folder name and what is your folder structure? Can you post a screenshot of your properties for the action and your Outlook folder view?

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

I specified it as a text( "Foldername") . That didn't work . After going through the code realized that we need to use ("location domain\inbox\subfoldername"). I wasn't aware that we can't specify the folder name alone as we done in previous version of the VBO. It works fine right now. 

Thanks
Surendharan Kuganesan

------------------------------
Surendharan Kuganesan
------------------------------

@SurendharanKuga,

Glad you figured it out. FWIW - The input format is described in the user guide available on the asset ​page for the VBO on the DX.

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------