Writing and Troubleshooting
Automations, Buttons, and Review Checklist
Notes for using Notion formulas in automations and buttons, plus a pre-publish review checklist.
Use this page to check whether formulas will stay stable in automations, buttons, and long-term maintenance. Before publishing, review the checklist item by item.
Formulas can be used not only in database formula properties, but also in variables or field-filling settings for some database automations and button actions.
But keep these points in mind:
- Not every automation location supports formulas.
- Formulas used in automations often need to return a specific type. For example, a date field must receive a date, and a text field must receive text.
- Variables defined inside the same automation action cannot reference each other.
- If a formula returns the wrong type, the automation may fail to save or run.
- Some actions, such as Slack notifications, may not support formulas.
A common formula for setting a date to "tomorrow" in an automation:
If a date is empty, return an empty value:
Pre-publish checklist
- Logical joins: use
oror||for OR conditions. day(): understand its return values as1=Mondayand7=Sunday.- Date units: use only date units supported by Notion.
- Text joining: use
+to concatenate text. - List merging: use
concat()to merge lists. - Text cleanup: check
trim()first when removing whitespace. - Person and relation properties: usually treat them as lists, using
first()ormap(). - Formula depth: avoid exceeding the 15-layer depth limit.
- Newer functions: confirm availability of
padStart(),padEnd(),count(),formatNumber(), andsplice()separately.
To use these formulas directly in task reminders, project progress, note heatmaps, and reports, continue with FLO.W Notion Template.
Last updated on
Notion Formulas