Posts

Showing posts from September, 2009

OutLookImporter - Import OutLook Public Folder Contacts

Image
I have created a nice little tool to export OutLook Public folder contacts to CSV file. It basically exports the Master/Detail contact list from OutLook to CSV File Format. Then, we may import the list to SharePoint or Other Third Party Applications. In Outlook, the Details Tab Information [Key Contacts] are basically stored as individual user defined fields for each contact. So, to get the value of User Defined fields we may have to use the following syntax: ctc.UserProperties["MyCompanyAlbertaRelationshipHolder"] instead of: ctc.FullName.ToString(); The following Public Folder Path I used in this example: \\Public Folders\All Public Folders\MyCompany\MyCompanyAB\Customer Information Folders\All Public Folders\MyCompany\MyCompanyAB\Customer Information and List Name is: Customer Information. So, to get the items of Customer Information we may have to create the instance of the MAPI Folders using following methods: Microsoft.Office.Interop.Outlook._Application olApp = new Mic