Function: Field
Syntax
Code Block |
---|
|
Field(fieldName)
|
Description
Field takes a single string argument and returns the value of the field. This function is normally implicitly declared when using comparison functions such as Equals, so for example this:
Code Block |
---|
|
Equal(Priority,High)
|
Automatically becomes this during query compilation:
Code Block |
---|
|
Equal(Field(Priority), High)
|
Field is useful when passing values to non-comparison functions, such as DateAdd, DateSubtract etc. or when comparing one field to another.
Examples
Count of items where the DueDate (custom date field) is after the last updated date:
Code Block |
---|
|
Faceted GreaterThan(DueDate, Field(LastUpdatedAt)) AS "Changed after due" { COUNT } WHERE EntityType = Incident
|