User defined field - Office

  • Thread starter Thread starter dht
  • Start date Start date
D

dht

How do I get a user defined field to refer to the "office" field in the
address book.

This is using outlook 2000 with exchange server.

Thanks
Dave
 
Sorry outlook 2000.

When your creating a custom form you can set up user defined fields taht you
can enter data into. You can also drag fields like To: and From: etc.

In the form I am creating I use the From: field to show who sent the form.
But I would like to also show what office and title they are as in the
information held in the address book. The form is for internal use only.

Is this possible?

Thanks
Dave
 
An Outlook item can display only the information stored in the item. It's
easy to add a custom field and call it whatever you want through the Field
Chooser. The additional piece that your form would require would be code --
probably in the Item_Send event handler -- to look up the current user's
record, get the data from the desired properties, and set the values of the
custom proerties in the item.

You can perform this lookup with CDO 1.21 or, to avoid security prompts,
with Redemption (http://www.dimastr.com/redemption/) or possibly also with
ADSI (see http://www.outlookcode.com/d/adsi.htm). See
http://www.cdolive.com/cdo10.htm for a basic primer on working with MAPI
property tags that applies to both CDO and Redemption; the AddressEntry
object contains the fields you're interested in.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks,

Will have a look.

Are Redemption and similar suitable for use on a corporate network as I'll
have to persuade the Network Administrator to allow it. Which could be
tricky

Rgds
David
 
Redemption is just a wrapper for Extended MAPI. The Redemption web site
explains how to secure it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top