Carrot reference
...
Fields
Data Types

Name

A Carrot datatype used by fields that store employee names.

The Name datatype is not supported by Custom Fields. The Name datatype is currently limited to the default field name.

Properties

The Name datatype supports the following properties:

Property

Definition

name.last

Returns last name, ex. "Morrison."

name.first

Returns first name, ex. "Jim."

name.pref

Returns preferred first name, ex. "Jimmy."

name.prefLast

Returns preferred last name, ex "Morrison."

name.middle

Returns middle name, ex. "Douglas."

name.full

Returns full name.

name.preferred

Returns preferred full name.

name.preferredFirst

Returns preferred first name if it exists, otherwise returns first name.

name.lastPreferred

Returns preferred full name, reversed, ex. "Morrison, Jimmy."

name.firstLast

Returns full name.

name.lastFirst

Returns full name, reversed, ex. "Morrison, Jim."

Sample usage

name.last returns the last name of a record.

Updated 12 Nov 2024
Doc contributor
Doc contributor
Doc contributor
Did this page help you?