• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

public folder problem

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2003] >> Public Folders >> public folder problem Page: [1]
Login
Message << Older Topic   Newer Topic >>
public folder problem - 7.Feb.2005 10:00:00 AM   
erold

 

Posts: 3
Joined: 11.Jan.2005
From: FRANCE
Status: offline
Hi,
I would like to create a "public folder" which contains contacts. I use this code. (à.)

Function CreatePublicFolder()

Dim objLDAP
Set objLDAP = GetObject("LDAP://rootdse")

Dim strURLFldr
strURLFldr = "file://./backofficestorage/"
strURLFldr = strURLFldr & strDomainName
strURLFldr = strURLFldr & "/PUBLIC FOLDERS/Entreprise/"

With CreateObject("cdo.folder")
.Description = "Mes contacts dÆentreprise"
.contentclass = "urn:content-classes:contactfolder"
.Fields("http://schemas.microsoft.com/exchange/outlookfolderclass") = "IPF.contact"
.Fields.Update
.DataSource.SaveTo strURLFldr
End With

End Function

Then I open my Outlook 2003, and I create a new contact in this repertory. This contact is created in my personal contacts.
I create a new public folder called "Test" and also a new contact via Outlook 2003. This contact is then created in "Test" folder.
I think I have forgotten to set up a parameter in my function. Does somebody have an idea?
Thank you,

erold.
Post #: 1
RE: public folder problem - 10.Feb.2005 9:14:00 AM   
erold

 

Posts: 3
Joined: 11.Jan.2005
From: FRANCE
Status: offline
Hi,
I have found what my problem was.
Shame on me it was a typo in the PR_CONTAINER_CLASS value that I mistakenly set
to IPF_contact in lieu of IPF_Contact. The folder appeared with the right icon in outlook, and so forth, copying contacts to this folder was supported by the store provider... but creating new contacts in this folder defaulted to the local store's contact folder.

Erold

(in reply to erold)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2003] >> Public Folders >> public folder problem Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter