Sbogard
Using Objects
All object/property pairs are also available in the Variables drop-down menu in the Knowledge Manager Field Code Editor.
Object properties can be of any data type. Agent.FullName, for example, is a string, but Interaction.DateCreated is a date/time.
The data type of an object property can even be another object. For example, Contact.EmailAddresses yields another object called a ContactEmailAddressList. In cases such as this, you can access the properties of the resulting object by entering a period (.), followed by the property name, just as before. For example, the formula below evaluates to the number of e-mail addresses assigned to the contact:
-
<$Contact.EmailAddresses.Count$>
Some object properties require arguments just as functions do. For these properties, write the arguments, enclosed in parentheses after the property name, just as before.
For example, the ContactEmailAddressList object has a property named Exists, which you can use to test whether a particular e-mail address is assigned to a contact. The data type of this property is Boolean (true/false), and it takes one argument, the e-mail address to test. For example:
-
<$Contact.EmailAddresses.Exists("samd@acme.com")$>
For detailed descriptions of all objects and their properties, see "Objects” in the Genesys eServices Field Codes Reference Manual.
