How do I write dynamic values and date calculations in automation field-update actions?
Last updated: August 25, 2026
Dynamic Values and the Function Pipeline
Field-update actions in Luminous support a template syntax that lets you calculate values at the moment the rule runs — instead of hard-coding a static value.
Basic placeholder syntax
Wrap any field name in double curly braces to insert its current value:
{{ order_number }}
{{ customer_name }}
{{ order_total }}
{{ created_at }}
Function pipeline syntax
Chain functions with a pipe (|) operator to transform a starting value:
{{ 'now'|addDays(30)|date('Y-m-d') }}
This reads as: start from right now → add 30 days → format as YYYY-MM-DD.
Available starting values
Value | Meaning |
|---|---|
| Current date and time |
| Current date at midnight |
| Yesterday at midnight |
| Tomorrow at midnight |
| The field's existing value |
Any date string | e.g. |
Date manipulation functions
Function | Effect | Example |
|---|---|---|
| Add N days |
|
| Subtract N days |
|
| PHP-style modification |
|
| Set time to 00:00:00 |
|
| Set time to 23:59:59 |
|
| Format output |
|
Text functions
Function | Effect |
|---|---|
| Convert to UPPERCASE |
| Convert to lowercase |
Using order field values as parameters
You can read a field's current value and use it inside a function:
{{ 'now'|addDays([custom_field_Days_to_Ship]:90)|date('Y-m-d') }}
This reads: add the value of the "Days to Ship" custom field to today; if that field is empty, null, or zero, use 90 as the fallback.
Syntax: [field_name]:fallback_value
A field is treated as empty when it is: null, an empty string, zero (0), or the string "0".
Common recipes
Goal | Template |
|---|---|
Ship date = today + 30 days |
|
Ship date from custom field, 90-day fallback |
|
Extend existing ship date by 7 days |
|
Expiry = end of day, 30 days out |
|
All-caps status field |
|
Where to use the function pipeline
Function templates work inside Update Field action values and inside the body/subject of Enhanced Email actions. They do not apply to condition values.