Description
The function determines whether the address is in X500 or X400 format, and then determines the organization name.
Arguments
Address is the Address of the sender/recipient (string data type).
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 Organization Name.
If the field is in X500 format, the function will extract the last instance of the "/O=" code (not case sensitive).
If the field is in the X400 format, it will extract the instance of the "P=" code (not case sensitive).
The fields must follow the address type standards for the functions to operate on them.
Examples
Field = /o=Business Objects/ou=CRYSTALNT/
cn=Configuration/
cn=Servers/cn=ESPRESSO/cn=Fredt
ExchGetOrganization({Field})
Returns "Business Objects".
Field = c=US; a= ; p=Microsoft; o=apps-wga; da:ms=com/
Rich/James.
ExchGetOrganization({Field})
Returns "Microsoft".
Field = c=US; a= ; p=Microsoft; o=apps-wga;
da:smtp=James@crystal.com.
ExchGetOrganization({Field})
Returns "Microsoft".