Contact Folders

Emma

Member
I am using Outlook to create contact items on the fly. The program checks that the contact doesn't exist, and if they don't, it creates them. The problem i am having is that the program is creating contacts that already exists.

At work, we use 'Mailbox - user, name" rather than the personal folders. I think this is where i am going wrong, that i am checking the wrong folder. On some machines, mine included, the personal folders still exists. The machine will not allow them to be deleted and produces an error.

How can i ensure i am checking the correct set of folders?

Does the following code check the contacts folder in the Personal folders, or the Mailbox folders?

CREATE "Outlook.Application" chOutlook.
chNamespace = chOutlook:getnamespace ("Mapi").
chFolder = chNameSpace:GetDefaultFolder(10).

Any help greatly appreciated.

TIA,

Emma.
 
Top