Skip to main content
CxScript Types - Object
Updated over 6 years ago

An object type is a so called compound type. It is a compound structure of attributes (fields). Examples of objectsare: candidate, company, contactperson, etc.

To assign an object value to the variable o:

<cx:let name="o" value="$activity.toEmployee">
 ... $o contains an employee object ...
</cx:let>

The attributes of an Object provide a way to access information to corresponding fields in the Carerix database.
You reference attributes by means of so called key-paths, like for instance in: 

<cx:write value="$activity.toEmployee.name"/>

The full key-path here is activity.toEmployee.name.
While the attribute toEmployee references a candidate objectin the database, the name attribute contains the name of the particular candidate.

Did this answer your question?