Article View: microsoft.public.exchange2000.development
Article #1CDOEx - IPerson: Fax address doesn't show in adressbook
From: volkmar rigo
Date: Mon, 19 Dec 2005 11:02
Date: Mon, 19 Dec 2005 11:02
48 lines
3171 bytes
3171 bytes
hello...
i've a problem that drives me crazy. i wrote a program that creates a
contact in a public folder. all works great except that the fax-number
of the contact doesn't show in the outlook address book. after saving
the created contact in outlook, the fax number shows. i know, that
outlook adds some magic hidden fields but i don't find them. i compared
the fields in the server explorer before and after saving: the content
length after saving increases by 340 bytes and the following fields
have different values: DAV:getetag, DAV:id and
http://schemas.microsoft.com/repl/resourcetag. this is how i set the
values (the code is delphi):
item := CreateOLEObject('CDO.Person');
item.FileAs := Adresse.Name1;
item.LastName := Adresse.Name1;
item.FirstName := Adresse.Name2;
item.WorkStreet := Adresse.Strasse;
item.WorkCountry := Adresse.Land;
item.WorkPostalCode := Adresse.PLZ;
item.WorkCity := Adresse.Ort;
item.WorkPostOfficeBox := Adresse.Provinz;
item.WorkPhone := Adresse.Telefon;
item.WorkFax := Adresse.Fax;
item.MobilePhone := Adresse.MobilTelefon;
item.Email := Adresse.Email1;
item.Fields.Item['objectClass'].Value := 'contact';
item.Fields.Item['http://schemas.microsoft.com/exchange/outlookmessageclass']
:= 'IPM.Contact';
item.Fields.Item['urn:schemas:mailheader:subject'] := Adresse.Name1;
item.Fields.Item['urn:schemas:contacts:fileasid'] := 1;
item.Fields.Item['urn:schemas:contacts:middlename'] := '';
item.Fields.Item['urn:schemas:contacts:namesuffix'] := '';
item.Fields.Item['urn:schemas:contacts:personaltitle'] := '';
int := 0;
Item.Fields.Item['http://schemas.microsoft.com/mapi/emailaddresslist']
:= VarArrayOf([int, int, int]);
item.Fields.Item['http://schemas.microsoft.com/mapi/emaillisttype'] :=
9;
item.Fields.Update;
item.DataSource.SaveTo(FolderURL + '/' + Adresse.ID + '.eml',
AdoConnection, 3);
any idea, what is missing in my code.
Technical Details
Message-ID:
<1134990131.556738.323280@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f684a,bc79b028b3d43761,start X-Google-Thread: fd196,bc79b028b3d43761,start X-Google-Attributes: gidf684a,gidfd196,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "volkmar rigo" <volkmar.rigo@acs.it> Newsgroups: microsoft.public.exchange2000.development,borland.public.delphi.oleautomation Subject: CDOEx - IPerson: Fax address doesn't show in adressbook Date: 19 Dec 2005 03:02:11 -0800 Organization: http://groups.google.com Lines: 49 Message-ID: <1134990131.556738.323280@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 217.199.23.226 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1134990136 15467 127.0.0.1 (19 Dec 2005 11:02:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 19 Dec 2005 11:02:16 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 ELEPHANT Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=217.199.23.226; posting-account=prGPEAwAAADNoPZnYta5ADuvMQ-F7EX3