INFO: Accessing Custom Attributes of Recipients

Last reviewed: January 2, 1998
Article ID: Q178553
The information in this article applies to:
  • Collaboration Data Objects (CDO), versions 1.1, 1.2
  • Extended Messaging Application Programming Interface (MAPI), version 1.0
  • Exchange Development Kit (EDK), version 5.0

SUMMARY

The following table contains the property identifiers and property tags you can use to access the values of the Custom Attributes of Recipients on Microsoft Exchange Server.

   Custom Attribute  Property ID  Property Tag
   ----------------  -----------  ------------
                  1    0x802D      0x802D001E
                  2    0x802E      0x802E001E
                  3    0x802F      0x802F001E
                  4    0x8030      0x8030001E
                  5    0x8031      0x8031001E
                  6    0x8032      0x8032001E
                  7    0x8033      0x8033001E
                  8    0x8034      0x8034001E
                  9    0x8035      0x8035001E
                 10    0x8036      0x8036001E

MORE INFORMATION

Collaboration Data Objects (CDO)

To retrieve the property using Collaboration Data Objects (CDO) (formerly known as Active Messaging), use the Fields collection of the AddressEntry property on the Recipient object. Here is the syntax:

   objRecip.AddressEntry.Fields(&H########).Value

For example, the following code displays the value of Custom Attribute 7 in a message box. (This code assumes the variable objRecip points to a resolved Recipient object on Microsoft Exchange Server.)

   MsgBox objRecip.AddressEntry.Fields(&H8033001E).Value

Extended MAPI

To retrieve the property using Extended MAPI, use the IMAPIProp::GetProps() method on the IMailUser object, or the HrGetOneProp() function. You must ensure that the recipient has been resolved to the Microsoft Exchange Server Global Address List.

REFERENCES

See the topics "Extension-Attribute-#" (where # is the number of the attribute) in the Microsoft Developer Network Library (MSDN). This topic can be found in the Microsoft Exchange Server Programmer's Reference.


Additional query words: ActMsg OleMsg
Keywords : EDKAPI EMAPI
Version : WINDOWS:1.0,1.1,1.2,5.0
Platform : WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.