FormulaPropertySpec

Represents a formula property specification in a Notion database. Formula properties automatically compute values based on other properties in the database using a formula expression.

Formulas can perform calculations, manipulate text, create conditional logic, and more. The formula's result type is determined by the expression used.

See also

Properties

Link copied to clipboard
abstract val expression: String

The formula expression that computes the property's value. The expression uses Notion's formula syntax, which is similar to spreadsheet formulas.

Link copied to clipboard
abstract val id: String

The ID of the property, usually a short string of random letters and symbols. Some automatically generated property types have special human-readable IDs. For example, all Title properties have an ID of title.

Link copied to clipboard
abstract val name: String

The name of the property as it appears in Notion.