How to create subfolders in outlook?

Hi, anyone who knows how to create subfolders in outlook? This is to create folder and subfolders in case it does not exist. Currently, there is no available activity on outlook based on that.

Hi @Lizette Check the below links

include this on ur imported namespace

set an interlop folder variable

then just use the .Add or .addfolder function
sample:

oFolders(“ur root folder”).Folders.Add(“ur subfolder”,Type.Missing)

3 Likes

Check this attached workflow. Notice the declared variable appOutlook and the default value. Don’t forget to add the required Imports as mentioned by @jeromeian.villaroman .
OutlookSubfolder.zip (2.4 KB)

2 Likes

Hi @Lizette try this simple solution that I created using UI activities, though it still needs improvement.
Create_SubFolder.xaml (12.8 KB)

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.