Creating Contacts in a Public Folder 
Author Message
 Creating Contacts in a Public 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://www.*-*-*.com/ ;Does anyone have an idea how to tell
my VB app to write the contacts to his location?


Mon, 14 Feb 2005 18:40:10 GMT  
 Creating Contacts in a Public Folder
See my answer to your post yesterday in microsoft.public.outlook.contacts

--
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


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?



Mon, 14 Feb 2005 19:00:36 GMT  
 Creating Contacts in a Public Folder
I dont see it - my post has not been answered there -Am i doing something
wrong


Quote:
> See my answer to your post yesterday in microsoft.public.outlook.contacts

> --
> 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



> 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?



Mon, 14 Feb 2005 20:16:31 GMT  
 Creating Contacts in a Public Folder
Sigh. It's there. This is what it said:

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.

--
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

Quote:



> 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?



Mon, 14 Feb 2005 20:41:18 GMT  
 Creating Contacts in a Public Folder
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?


Quote:
> Sigh. It's there. This is what it said:

> 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.

> --
> 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



> > 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?



Mon, 14 Feb 2005 23:02:59 GMT  
 Creating Contacts in a Public Folder
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?


Quote:

> 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?



Mon, 14 Feb 2005 23:22:21 GMT  
 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?



Mon, 14 Feb 2005 23:31:21 GMT  
 Creating Contacts in a Public Folder

Quote:
> It did not return any error message - all i did is added an extra folder
to
> the path.

Does creating the contact return Nothing? Show the relevant code snippet,
please. Permissions?

Quote:
> 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.

As long as the folder is visible in the Outlook hierarchy and is the correct
type, it should work.

Quote:
> If so how would I add the folder below the parent using
> the Outlook Object Model.

MAPIFolder.Folders.Add

Quote:



> > 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?



Tue, 15 Feb 2005 01:13:07 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Create New Contact in Public Folder

2. How to create a contact in a Public Folder with VBA

3. HELP!!! Creating Contacts on Public Folders

4. Public Folder Contact folders.

5. Syncronize in programmatic way, the folder Contact with the public folder

6. How do I add a contact to a public folder programatically

7. Resolve Contact to Public Folder

8. Need sample code for read public folder contact into access

9. Enable a Public folder (contacts) for Outlook address Book

10. Referring to Items in Public (Contacts) Folder

11. Synchronizing/exporting contacts into Public Folder

12. Error copying a public Contact folder within Outlook 2000 SR1

 

 
Powered by phpBB® Forum Software