Description
The ExchGetID (address) function determines whether the address is in X500 or X400 format, and then determines the ID.
Arguments
address is the address of sender/recipient (string data type).
Action
The ExchGetID (address) function will begin by determining whether the address in X500 or X400 format. Once this has been solved, the function will then determine the ID.
If the field is in X500 format, the function will extract the last instance of the "CN=" code (not case sensitive).
If the field is in the X400 format, it will extract the SMTP or MS Ids.
The fields must follow the address type standards for the functions to operate them.
Examples
Field = /o=Business Objects/ou=CRYSTALNT
/cn=Configuration/cn=Servers/cn=ESPRESSO/cn=Fredt
ExchGetID({Field})
Returns "Fredt".
Field = c=US; a= ;p=Microsoft; o=apps-wga;
dda:smtp=James@crystal.com
ExchGetID({Field})
Returns "James@crystal.com".
Field = c=US; a= ;p=Microsoft; o=apps-wga; dda:ms=com/
crystal/James
ExchGetID({Field})
Returns "com/crystal/James".