### ExchGetSite (address)

Basic and Crystal syntax.

##### Argument(s)

Address is the Address of sender/recipient (string data type).

##### Return(s)

String

##### Action

The function will begin by determining whether the address is in X500 or X400 format. Once this has been solved, the function will then determine the Site Name.

- If the field is in X500 format, the function will extract the last instance of the "/OU=" code (not case sensitive).
- If the field is in the X400 format, it will extract the instance of the "O=" code (not case sensitive).

Note: The fields must follow the address type standards for the functions to operate on them.

##### Examples

The following examples are applicable to Crystal syntax:

Field = /o=Seagate Software /ou=CRYSTALNT/
cn=Configuration/cn=Servers/cn=ESPRESSO/cn=Fredt
ExchGetSite({Field})

Returns "CRYSTALNT".

Field = c=US; a= ;p=Microsoft; o=apps-wga;
dda:smtp=James@Rich.com.
ExchGetSite({Field})

Returns "apps-wga".

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com