Re: Checking type of a MAPIFolder



Thanks, in the end it ws a syntax problem.. I'm having some quite silly days lately :P thanks!

By the way.. I've created a new .pst with a contacts folder there, but when I create a new contact like this...

MSOutlook.ContactItem contact = null;
contact = (MSOutlook.ContactItem)Globals.GRAAddIn.Application.CreateItem(MSOutlook.OlItemType.olContactItem);

.... I get the contact added to the contacts folder on the original .pst... is the a way to change this, or to change the default contacts folder?

Thanks a lot!
Pablo

"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message news:%23H6bDaIbHHA.5044@xxxxxxxxxxxxxxxxxxxxxxx
MAPIFolder.DefaultItemType. It returns a 32-bit int that's a member of the OlItemType enum, for contacts you're looking for olContactItem which has a value of 2.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Pablo Alvarez Doval" <pablod@xxxxxxxxxxxxxxxxx> wrote in message news:B4F98310-0930-41C8-9BE4-DD3F44432072@xxxxxxxxxxxxxxxx
Hi all,

I'm trying to iterate thru all the MAPIFolders in my personal store and get the contacts one. How could I get the 'type' of a folder (say if it is a contacts folder, or an inbox, etc...)? Thanks a lot!

Best Regards!
Pablo


.



Relevant Pages

  • Re: Checking type of a MAPIFolder
    ... I believe this can be done by setting the current folder as you custom contacts folder and then adding an item to it directly or from a contact form template. ... I've created a new .pst with a contacts folder there, but when I create a new contact like this... ... the OlItemType enum, for contacts you're looking for olContactItem which has a value of 2. ... I'm trying to iterate thru all the MAPIFolders in my personal store and get the contacts one. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: outlook I cant import my pst file after 2007 trial
    ... Locate scanpst.exe, the pst repair tool, run it on the pst, run it several ... second Personal Folder or Archive if it was such. ... I have reinstalled Outlook again. ...
    (microsoft.public.outlook.installation)
  • Re: Windows XP Shared PC - Outlook Inbox problems
    ... Copy the .PST to each user's Windows profile -- you can put it in any ... profile-specific folder; it doesn't have to go in the default folder that ... Log into Windows as one of the users, ... e-mail account pulling down messages to that .PST. ...
    (microsoft.public.outlook)
  • Re: problems reconnect old data file .pst
    ... Also as Brian Tillman ... If you copy another PST ... You installed Outlook on a new computer or a new hard disk and are ready ... Although you can keep your data files in any folder, ...
    (microsoft.public.outlook.installation)
  • Re: Outlook 2000 Contacts folder
    ... In Corp/Workgroup it's easy to start clean by simply creating a new PST ... > Outlook installed/config'd as "Corporate or Workgroup". ... Create a new PST file and set it to be the default. ... >>- Right-click on the root of the new set of folders in the folder pane ...
    (microsoft.public.outlook)