Insert record values into messages
Section titled “Insert record values into messages”This how-to is for builders who want messages that speak about the record:
“Dear Sara, your leave from 02/12/2026 10:00 was approved”. You write a placeholder
such as {{employee_name}} in the text, then tell OSOS where its value comes
from. The same method works in emails, SMS, in-app notifications, WhatsApp messages,
a button’s confirmation dialog and link, and the URL, headers and payload of a
Call API action.
You need:
- Developer access on the module, to edit reactions and buttons.
- A reaction or a button to add the message to. See Reactions & automation and Buttons.
How placeholders work
Section titled “How placeholders work”- Write
{{name}}wherever the value should go. A name may contain letters, digits and_— no spaces, no dots. Write the braces tight around the name:{{start_date}}, not{{ start_date }}. - Leave the field. OSOS finds the placeholders and lists them under Custom Variables, with the columns Variable, Type and Map to.
- Map each one. Choose a Type, then what it maps to:
| Type | The placeholder becomes | Example |
|---|---|---|
| Field | A field of the record that set it off, or one of its system fields (created by, created at, updated by, updated at) | Employee name |
| Expression | The result of an expression | scope.entry.value.days * 8 |
| Fixed | A value you type | HR Department |
| Pointer | A date: @now, @today, @StartOfDay, @StartOfWeek, @StartOfMonth or @StartOfYear | @today |
The same placeholder can appear several times in the text; you map it once.
Which types each place offers
Section titled “Which types each place offers”| Where | Text that takes placeholders | Types offered |
|---|---|---|
| Send Email | Subject, body | Field, Expression |
| Send SMS | The message | Field, Expression |
| Send Notification | Title, content | Field, Expression, Fixed |
Send WhatsApp Since 1.10 | The approved template’s numbered variables, by position | Field, Expression, Fixed |
| Call API | API URL, API Headers, Custom Payload | All four |
A button’s URL Since 1.8 | The link | All four |
A button’s Dialog title and Dialog content Since 1.8 | The confirmation dialog | All four |
For Send Email with a shared Template, the subject and body come from the template, and you map the template’s placeholders here. Shared templates are managed by an administrator — see Notifications & email templates.
Recipe: an approval email
Section titled “Recipe: an approval email”On a Leave requests entity, email the employee when the request is approved.
-
Add a reaction with the event On Workflow Step Reached on the Approved step, and the action Send Email. See Add a reaction.
-
In To, add a recipient of type Field and choose the Employee field.
-
In Subject, write:
Leave approved: {{start_date}} to {{end_date}} -
In the body, write:
Dear {{employee_name}},Your {{leave_type}} leave from {{start_date}} to {{end_date}} ({{days}} days)has been approved. -
Under Custom Variables, map:
Variable Type Map to employee_nameField Employee leave_typeField Leave type start_dateField Start date end_dateField End date daysField Days -
Turn on ADD Entry Link to add a link back to the request, and save.
Recipe: a confirmation dialog with the record’s number Since 1.8
Section titled “Recipe: a confirmation dialog with the record’s number Since 1.8”- Open the button’s settings. Under Before Execution, turn on Show confirmation dialog before execution.
- In Dialog title, write
Close request {{request_no}}? - In Dialog content, write
This closes {{request_no}} for {{customer}}. - Map
request_noandcustomerwith Field.
Placeholders in the dialog work only when the button’s Scope is Single Entry. If a value cannot be filled — for example the field is not in the view the button is clicked from — the dialog shows the default title and text instead. See Ask for confirmation first.
How each kind of value is written
Section titled “How each kind of value is written”| The value is | It is written as |
|---|---|
| Text, number, yes/no | As stored. |
| A date and time | dd/MM/yyyy HH:mm — for example 02/12/2026 10:00 — in UTC+4, whatever the reader’s time zone. |
| A reference to another record | The linked record’s main title. |
| A list option or a lookup | Its label. |
| Several values | Each value written as above, separated by commas, with no space. |
| Empty | Nothing: the placeholder disappears. |
| A Pointer or an Expression result | As returned — dates are not reformatted. |
Languages. A notification is filled separately for each language, so each reader gets the value in their language. Emails, SMS and WhatsApp messages use the value in the platform’s default language.
Values from a linked record. Map the placeholder to a field of the record that set the reaction off. If you need a value from a linked record, copy it onto this record first with a mapped field or a calculated value, and map that field.
Your own format. To control how a value looks, use Expression. For example,
a date as 2 December 2026:
new Date(scope.entry.value.start_date).toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric' })Keep a value out of the run history Since 1.6
Section titled “Keep a value out of the run history Since 1.6”Each reaction run keeps the message it sent in its history. To keep a value such as a one-time code out of it, tick Redact in history on that variable. The real value is still sent; only the history shows it hidden. Values from protected fields are always hidden there. See Secrets stay out of the run history.
Check the result
Section titled “Check the result”- Set off the reaction on a test record — approve a test leave request.
- Open the message: every placeholder is replaced, and dates look as you expect.
- If something is wrong, open the run in the reaction’s run history and compare what was sent. See Check that it ran.
Troubleshooting
Section titled “Troubleshooting”| Problem | What to check |
|---|---|
{{name}} is sent as it is | It has spaces or other characters inside the braces, or it is not mapped. Write {{name}} with letters, digits and _ only, and map it. |
| You cannot save the email or notification | A placeholder in the text has no mapping under Custom Variables. |
| A placeholder is replaced with nothing | The field is empty on that record, or a Field mapping points to a field of a linked record. Map a field of this record. |
| The time is a few hours off | Dates are written in UTC+4. Use an Expression to write the date in another way. |
| The button’s dialog shows its default text | The button’s Scope is not Single Entry alone, or a mapped field is not in the view. |
| A number arrives in quotes in the API payload | See Send a record to another system. |
See also
Section titled “See also”Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27