Admin Manual / Appendix A – Witly Script / Variable / Object
Object

Returns a field value. The formatter supports both date and numeric data type while the expression value supports date data type only.

Variable

Description

Object.Module

Returns the module object.

Object.Field

Returns the value of the specified field. To get the field name,

  1. Navigate to the module detail screen
  2. Select a field from a field tab.
  3. You will be directed to the field detail screen.
  4. The field name will be displayed under variable name label.

Object.KeyField

Returns the value of key field.

Object.WebLink

Returns URL of current record.

Object.Id

Returns unique ID of current record.

Object.RelatedId

Returns parent ID of current record.

Object.Field.OldValue

Returns previous value of the specified field.

Object.Parent

Returns parent object.

Object.RelationName[idx].Field

Returns the field value of the relationship module. Idx is used to   specify a row number or a filter condition. You can use a numeric value (start from 1) or use a filter like FieldName=Value. For example, use ${Object.Product[1].Name} to get the first row of record or use ${Object.Product[“ProductId=0001”].Name} to get a product name of ProductId = 0001.

Last modified on Jan 23, 2018