Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7901497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:14:04+00:00 2026-06-03T09:14:04+00:00

I am looking into creating an outlook plugin that I can select a conversation

  • 0

I am looking into creating an outlook plugin that I can select a conversation from the Conversation History folder and then click a button that saves it to a folder. Does anyone have any pointers to how I can select the Conversation History Folder and Run Searches via C# as well as selecting conversations.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:14:05+00:00Added an answer on June 3, 2026 at 9:14 am
        public static List<Outlook.MAPIFolder> GetFolders()
        {
    
            List<Outlook.MAPIFolder> _list = new List<Outlook.MAPIFolder>();
    
            Outlook.MAPIFolder root = OutlookApplication.Session.DefaultStore.GetRootFolder();
    
    
            foreach (Outlook.MAPIFolder folder in root.Folders)
            {
                _list.Add(folder);
            }
    
            return _list;
        }
    
        public static Outlook.MAPIFolder GetFolderByEntryId(string entryId)
        {
            List<Outlook.MAPIFolder> folders = GetFolders();
            return folders.Where(x => x.EntryID == entryId).FirstOrDefault();
        }
    
        public static Outlook.MAPIFolder GetFolderByName(string folderName)
        {
            List<Outlook.MAPIFolder> folders = GetFolders();
            return folders.Where(x => x.Name == folderName).FirstOrDefault();
        }
    

    And

        public static List<Outlook.MailItem> GetSelectedItem()
        {
            List<Outlook.MailItem> _list = new List<Outlook.MailItem>();
    
            Outlook.Selection outlookSelection = OutlookApplication.ActiveExplorer().Selection;
    
            for (int i = 1; i < outlookSelection.Count; i++)
            {
                Outlook.MailItem mailItem = (Outlook.MailItem)outlookSelection[i];
    
                _list.Add(mailItem);
            }
    
            return _list;
        }
    
        public static List<Outlook.MailItem> GetMailItems(string FolderName)
        {
            List<Outlook.MailItem> _list = new List<Outlook.MailItem>();
    
            Outlook.MAPIFolder theFolder = OutlookApplication.Session.GetFolderFromID(GetFolderByName(FolderName).EntryID);
    
            foreach (Object item in theFolder.Items)
            {
                Outlook.MailItem mailItem = (Outlook.MailItem)item;
    
                if (mailItem != null)
                {
                    _list.Add(mailItem);
                }
            }
    
            return _list;
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking into creating something that does this: SELECT * FROM (`tm_accounts`) WHERE
I am looking into creating an Public API so that we can open up
I'm looking into creating a desktop and mobile app which can work together and
By looking into the Open JPA website i've found that i can log the
I'm looking into creating a widget that supports animation, ideally via the android.view.animation framework,
I'm looking into creating a TService Descendant so that when writing a new service
I'm looking into creating a Plugin structure for a program and making it so
I'm looking into creating a library for myself that handles common internet-related functions. So
I'm looking into creating an Web or iPad application that will use HTML5. After
I'm looking into creating dump files for a managed process. I know that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.