public folder problem
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
public folder problem

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
marie
Guest





Posted: Mon Feb 07, 2005 2:51 pm    Post subject: public folder problem Reply with quote

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 strDomainName
strDomainName = objLDAP.Get("dnshostname")
strDomainName = Mid(strDomainName, InStr(strDomainName, ".") + 1)

Dim strURLFldr
strURLFldr = "file://./backofficestorage/"
strURLFldr = strURLFldr & strDomainName
strURLFldr = strURLFldr & "/PUBLIC FOLDERS/Server
Contacts/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,

Marie.

Back to top
marie
Guest





Posted: Thu Feb 10, 2005 2:12 pm    Post subject: Re: public folder problem Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB