Custom formulas
A constant or a formula the organization defines and uses in the calculator.
- API name:
formulas - Domain: Platform
- Modules: Master data
Fields
The API name is what the API and MCP use.
| Name | API name | Type | Required | Description |
|---|---|---|---|---|
| ID | id | Record ID | Yes | |
| Name | label | Text | Yes | |
| Code | code | Text | Yes | Name in a line, written as {'@'}code. Lowercase letters, digits and underscores. Unique in the organization. |
| Type | kind | Constant | Yes | A constant is a value with a unit and has no inputs. A formula has inputs and at least one example. |
| Group | group | Text | ||
| Inputs | inputs | JSON | Each symbol the expression reads. Empty for a constant. | |
| Expression | expression | Text Area | Yes | Result in the calculator syntax. It may use input symbols, units, currencies and {'@'}codes. |
| Result | result | JSON | Symbol, label and unit of the value the expression returns. | |
| Examples | examples | JSON | A formula needs at least one example. Publish checks that each example matches. | |
| Links | links | Link | Links | ||
| Description | description | Text Area | ||
| Tags | tagIds | Tags | ||
| External identifiers | identifiers | External identifier | External identifiers | Keys used in other systems. One value per system and key type. | |
| Custom fields | data | Custom fields | ||
| Created by | createdBy | User | ||
| Created at | createdAt | Date and Time | Yes | |
| Updated by | updatedBy | User | ||
| Updated at | updatedAt | Date and Time | Yes | |
| Published by | publishedBy | User | ||
| Published at | publishedAt | Date and Time | ||
| Disabled by | disabledBy | User | ||
| Disabled at | disabledAt | Date and Time | ||
| Blocked by | blockedBy | User | ||
| Blocked at | blockedAt | Date and Time | ||
| Archived by | archivedBy | User | ||
| Archived at | archivedAt | Date and Time |
Relations
| Field | Points to | Kind |
|---|---|---|
Tags tagIds | Tags | reference |
States
How a record moves from state to state. Archive and block can happen in any state.