Creating Folders on Outlook

Here is a simple but usefull tip for outlook add-in developers. You can create new folders with the help of the following code :

//using Outlook = Microsoft.Office.Interop.Outlook;
//ThisApplication outlook

Outlook.MAPIFolder rootFolder = Utility.Folder.GetRootFolder(outlook.Session);
Outlook.MAPIFolder tcRootFolder = Utility.Folder.CreateFolder(rootFolder, "My Folder");

No related posts.

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

No comments yet... Be the first to leave a reply!

Leave a Reply