smartsuite_create_formula_field
Create a formula field in SmartSuite after validating the expression. Use confirm:true to finalize; omit for a dry-run preview.
Instructions
Create a new formula field in a SmartSuite application. Requires readwrite/admin mode AND SMARTSUITE_ENABLE_SCHEMA_WRITE=true. The expression is validated first — an invalid formula is never created. Without confirm:true returns a dry-run preview (validation result + what would be created); set confirm:true to create. The field slug is generated automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Display label for the new field | |
| confirm | No | Must be true to actually create. Omit/false for a validate-only dry run. | |
| formula | Yes | The formula expression | |
| returnType | No | Output field type (default textfield). One of: textfield, numberfield, datefield, currencyfield, percentfield, singleselectfield, statusfield, yesnofield, emailfield, phonefield, durationfield, timefield, daterangefield, duedatefield. | |
| applicationId | Yes | The application ID | |
| afterFieldSlug | No | Optional: place the new field immediately after this existing field slug (defaults to last field). |