![]() |
Synchronizing sharepoint contact list with outlook 2007
Hi,
i have written a vsto program to retrive the contact details from outlook contacts.My outlook contact contains two types of contact. 1)contacts which are creatred in outlook iteslf. 2)contacts which are synchonized from sharepoint contact list. while retrieving contact details,the outlook contact is only retrieved but not the synchonized sharepoint contacts.Below is code snippet: private void ThisApplication_Startup(object sender, System.EventArgs e) { Outlook.NameSpace outlookNameSpace = this.GetNamespace("MAPI"); Outlook.MAPIFolder contactsFolder = outlookNameSpace.GetDefaultFolder(Microsoft.Office .Interop.Outlook.OlDefaultFolders.olFolderContacts ); Outlook.Items contactItems = contactsFolder.Items; foreach(Outlook.ContactItem contact in contactItems) { MessageBox.Show("Contact First Name:"+ contact.FirstName + "Contact Last Name:" + contact.LastName);] } } I am using VSTO second edition 2005,visual studio 2005 and outlook 2007. I want to know why sharepoint list contact is not retrieved or my program is wrong. |
All times are GMT +1. The time now is 11:11 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com