create exchange public folder contact

K

krasman

hi everyone,

i hope you might help me on this one. i need to create a contact in a
exchange public folder using dotnet (vb or c#) and exchange 2003, without
using outlook object model. i'm searching for a few hours and can't find a
clear example on how to do it. i've already seen code blocks using webdav,
directory services, but always related with creating active directory users
or mail enabling users, not exactly what i'm looking for.

TIA

krasman
 
K

krasman

Hi,

thank you all for your responses.

using http://msdn.microsoft.com/en-us/library/ms878641(EXCHG.65).aspx i was
able to create folders in exchange. but i need to create contacts inside a
public folder; not the folder itself. with
http://support.microsoft.com/kb/313119 i'm getting error 400 - bad request.
however, looks like the code creates a contact in administrator's contacts
(string sUri =
"http://ExchServer/Exchange/Administrator/Contacts/JoLynnDobney.eml";). is
this true?

TIA


Glen Scales said:
Have a look at http://support.microsoft.com/kb/313119 this says 2000 but
will work fine one 2003

Cheers
Glen
 
G

Glen Scales [MVP]

You need to change that URL to the folder you want to create the contact in
eg if you wanted to create contacts in a public contacts folder then you
would use "https://servername/public/contactsfolder/" the JoLynnDobney.eml
section of the URL you need to create yourself this needs to be a unique
value for each object in the folder. 400 errors generally point to problems
with malformed XML in the request you sending

Cheers
Glen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top