All field return values may have isMultipleCellValue: true
in certain cases:
This occurs when the field is a lookup field. When the linked value allows multiple selections, the lookup field value will necessarily be an array.
Fields can be configured - for example, user fields and link fields can be configured as single or multiple selection. In your code, you can use field.isMultipleCellValue
to determine if a field accepts multiple values.
Do not use field type to determine write permissions. Instead, use the isComputed property of the field.
number
isMultipleCellValue: false
: number
isMultipleCellValue: true
: number[]
Example:
string
isMultipleCellValue: false
: string
isMultipleCellValue: true
: string[]
Example:
string
isMultipleCellValue: false
: string
isMultipleCellValue: true
: string[]
Example:
string
(option value)isMultipleCellValue: false
: string
isMultipleCellValue: true
: string[]
Example:
string[]
(array of option values)string[]
Example:
isMultipleCellValue: false
: { id: string }
isMultipleCellValue: true
: { id: string }[]
isMultipleCellValue: false
: { id: string, title?: string }
isMultipleCellValue: true
: { id: string, title?: string }[]
Example:
string | number | boolean
or their array formsExample:
To upload an attachment to an attachment field, use the dedicated API. For details, see the Upload Attachment section.
type: attachment
Write type:
Return type:
Example:
string
(ISO 8601 format)isMultipleCellValue: false
: string
(ISO 8601 format)isMultipleCellValue: true
: string[]
(ISO 8601 format)
You can use new Date().toISOString()
to get the ISO 8601 time formatExample:
isMultipleCellValue: false
: string
(ISO 8601 format)isMultipleCellValue: true
: string[]
(ISO 8601 format)Example:
isMultipleCellValue: false
: string
(ISO 8601 format)isMultipleCellValue: true
: string[]
(ISO 8601 format)Example:
boolean
isMultipleCellValue: false
: boolean
isMultipleCellValue: true
: boolean[]
Example:
number | string
or their array formsExample:
number
isMultipleCellValue: false
: number
isMultipleCellValue: true
: number[]
Example:
isMultipleCellValue: false
: number
isMultipleCellValue: true
: number[]
Example:
isMultipleCellValue: false
: { id: string, title: string }
isMultipleCellValue: true
: { id: string, title: string }[]
isMultipleCellValue: false
: { id: string, title: string, email?: string, avatar?: string }
isMultipleCellValue: true
: { id: string, title: string, email?: string, avatar?: string }[]
Example:
isMultipleCellValue: false
: { id: string, title: string, email?: string, avatar?: string }
isMultipleCellValue: true
: { id: string, title: string, email?: string, avatar?: string }[]
Example:isMultipleCellValue: false
: { id: string, title: string, email?: string, avatar?: string }
isMultipleCellValue: true
: { id: string, title: string, email?: string, avatar?: string }[]
Example: