Author | Topic: Contact in Outlook | |
---|---|---|
Dirk Visser RI | Contact in Outlook on Tue, 01 May 2012 21:39:40 +0200 Dear all, In Outlook you can attached more than one PST file and withn a PST more than one contactsfolders. I presume that it must be possible to get a list of these PST files (That I know how to do) but I want to get the names of the contactfolders. When you know the folders I want to select the folders for updating contacts. When a folder doesn't exist I want to make a folder within a specific PST file. All examples I find are based on one PST file and one contactsfolder. I cannot find somewhere an overview of methods within Outlook. So I hope someone can me give the missing information. Dirk Visser Director VigilantDMS | |
AUGE_ OHR | Re: Contact in Outlook on Tue, 01 May 2012 22:40:45 +0200 hi, >In Outlook you can attached more than one PST file and within a PST more >than one contactsfolders. > >All examples I find are based on one PST file and one contactsfolder. i do not think that you can access a *.PST "direct", this handle by Outlook. constante "olFolderContacts" is use to attach contact folder. you can have groups within contact folder. as i can say you only can access "active" folder not "Backup" PST or other PST files greetings by OHR Jimmy | |
Dirk Visser RI | Re: Contact in Outlook on Thu, 03 May 2012 10:15:55 +0200 Jimmy, I have found a way to get a list of all PST and the folders with those PST. My only problem is now how to detect what the type of the folders are. I get a list of all folders including mail, appointments and so on. Dirk Visser <AUGE_ OHR> schreef in bericht news:31c0d722$659e5ae0$4a91b@news.alaska-software.com... > hi, > >>In Outlook you can attached more than one PST file and within a PST more >>than one contactsfolders. >> >>All examples I find are based on one PST file and one contactsfolder. > > i do not think that you can access a *.PST "direct", this handle by > Outlook. > > constante "olFolderContacts" is use to attach contact folder. > you can have groups within contact folder. > > as i can say you only can access "active" folder not "Backup" PST or other > PST files > > greetings by OHR > Jimmy | |
AUGE_ OHR | Re: Contact in Outlook on Thu, 03 May 2012 19:38:25 +0200 hi, > I have found a way to get a list of all PST and the folders with those > PST. My only problem is now how to detect what the type of the folders > are. I get a list of all folders including mail, appointments and so on. as i say you have to use Constante ( using Tlb2Ch.exe ) Enumeration OlDefaultFolders #DEFINE olFolderDeletedItems 3 #DEFINE olFolderOutbox 4 #DEFINE olFolderSentMail 5 #DEFINE olFolderInbox 6 #DEFINE olFolderCalendar 9 #DEFINE olFolderContacts 10 #DEFINE olFolderJournal 11 #DEFINE olFolderNotes 12 to switch to a Folder oNameSpace := ::oOutlook:GetNamespace( "MAPI" ) ::oContacts := oNameSpace:getDefaultFolder( olFolderContacts ) if you pick a Folder from "List of Folder" you can try oMyFolder := oNameSpace:PickFolder() Appointment are a Items of Calender ::oAppointment := ::oNameSpace:getDefaultFolder( olFolderCalendar ) :Items greetings by OHR Jimmy |