
Creating Contacts in a Public Folder
It did not return any error message - all i did is added an extra folder to
the path. As for the types, they are the same both levels are contact
folders. What I am trying to do is create folders based on certain groups
then create the contacts in those groups. I do know before I started using
the Outlook Object Model, I was using CDO and it would create the contact
in the correct folder. No matter if it was a parent of subfolder. The
problem I had with CDO is the business fax information would not show up in
the Address book for the contacts. Only the email addresses. Hince I
started using the Outlook Model and it works great other than the wrong
folder. Man this is getting crazy. Finally - Not sure if it matters or
not, I used CDO to create the subfolder level I am trying to create the
contacts for. I believe the Partent Level was created manually. Would that
cause the problem. If so how would I add the folder below the parent using
the Outlook Object Model.
Quote:
> Error messages? Other symptoms? Did you remember to call Save in your code
> to save the item? If you have a valid MAPIFolder object and you can't add
> items to it, that usually means a permissions problem or possibly an
attempt
> to create an item in a folder created to hold a different type of item.
> --
> Sue Mosher, Outlook MVP
> Outlook and Exchange solutions at http://www.slipstick.com
> Author of
> Microsoft Outlook Programming Jumpstart - coming September 2002
> http://www.slipstick.com/books/jumpstart.htm
> Looks like everything is working except it will not add it in the public
> folder I need. For instance - one test I did had a path of "Public
> Folder/All Public Folders/Testfolder" - It creates the contact perfectly
in
> there, but if I add another subfolder like "Public Folder/All Public
> Folders/Testfolder/CustInfo" it will not create the contact. When I do a
> debug.print, my FolderObject is set to the CustInfo folder, but it is not
> creating it. What could I be missing?
> > You need to get the folder object by walking the folder hierarchy or
using
> > the sample code at http://www.slipstick.com/dev/code/getfolder.htm, then
> use
> > the MAPIFolder.Items.Add method to add the contact to the folder.
> > > I am using the Outlook Object Model to create contacts that will show
up
> > in
> > > my address book. Everything is working great except I need the
contacts
> > to
> > > show up in a Public Folder that I created. Right now they are showing
> up
> > in
> > > My Contacts area. I am using VB 6.0 to create the contacts. I just
do
> > not
> > > know how to point it to a folder in the Public Folder area. The path
to
> > the
> > > public folder is something like:
> > > http://mail.test.com/public/AgentInfo. Does anyone have an idea how
to
> > tell
> > > my VB app to write the contacts to his location?