website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Premade Carrot filters
Operator precedence
Expression truthiness
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

Enum

A Carrot datatype used by fields that store one value out of a set of allowed values, each with a unique label.

The Enum datatype is supported in Custom Fields. Custom fields that are of type Enum are Single Select, Multiple Select, Numeric Scale, and Smart Bucket.

Properties

The Enum datatype supports the following properties:

Property

Definition

someEnum.name

Returns the option name.

someEnum.label

Returns the option label.

someEnum.color

Returns the option color.

someEnum.expr

Expression to be calculated.

someEnum.num

Returns the numeric value of the option.

Sample usage

employment:temporary returns all records where employment, a default field of type Enum, has the value temporary. There are six unique, inbuilt options for employment.

Updated 01 Feb 2023
Did this page help you?
Yes
No
UP NEXT
EnumList
Docs powered by archbee