Skip to content

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.
  1. 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 }}.
  2. Leave the field. OSOS finds the placeholders and lists them under Custom Variables, with the columns Variable, Type and Map to.
  3. Map each one. Choose a Type, then what it maps to:
TypeThe placeholder becomesExample
FieldA field of the record that set it off, or one of its system fields (created by, created at, updated by, updated at)Employee name
ExpressionThe result of an expressionscope.entry.value.days * 8
FixedA value you typeHR Department
PointerA date: @now, @today, @StartOfDay, @StartOfWeek, @StartOfMonth or @StartOfYear@today

The same placeholder can appear several times in the text; you map it once.

WhereText that takes placeholdersTypes offered
Send EmailSubject, bodyField, Expression
Send SMSThe messageField, Expression
Send NotificationTitle, contentField, Expression, Fixed
Send WhatsApp Since 1.10The approved template’s numbered variables, by positionField, Expression, Fixed
Call APIAPI URL, API Headers, Custom PayloadAll four
A button’s URL Since 1.8The linkAll four
A button’s Dialog title and Dialog content Since 1.8The confirmation dialogAll 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.

On a Leave requests entity, email the employee when the request is approved.

  1. Add a reaction with the event On Workflow Step Reached on the Approved step, and the action Send Email. See Add a reaction.

  2. In To, add a recipient of type Field and choose the Employee field.

  3. In Subject, write:

    Leave approved: {{start_date}} to {{end_date}}
  4. In the body, write:

    Dear {{employee_name}},
    Your {{leave_type}} leave from {{start_date}} to {{end_date}} ({{days}} days)
    has been approved.
  5. Under Custom Variables, map:

    VariableTypeMap to
    employee_nameFieldEmployee
    leave_typeFieldLeave type
    start_dateFieldStart date
    end_dateFieldEnd date
    daysFieldDays
  6. 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”
  1. Open the button’s settings. Under Before Execution, turn on Show confirmation dialog before execution.
  2. In Dialog title, write Close request {{request_no}}?
  3. In Dialog content, write This closes {{request_no}} for {{customer}}.
  4. Map request_no and customer with 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.

The value isIt is written as
Text, number, yes/noAs stored.
A date and timedd/MM/yyyy HH:mm — for example 02/12/2026 10:00 — in UTC+4, whatever the reader’s time zone.
A reference to another recordThe linked record’s main title.
A list option or a lookupIts label.
Several valuesEach value written as above, separated by commas, with no space.
EmptyNothing: the placeholder disappears.
A Pointer or an Expression resultAs 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.

  1. Set off the reaction on a test record — approve a test leave request.
  2. Open the message: every placeholder is replaced, and dates look as you expect.
  3. If something is wrong, open the run in the reaction’s run history and compare what was sent. See Check that it ran.
ProblemWhat to check
{{name}} is sent as it isIt 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 notificationA placeholder in the text has no mapping under Custom Variables.
A placeholder is replaced with nothingThe 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 offDates are written in UTC+4. Use an Expression to write the date in another way.
The button’s dialog shows its default textThe 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 payloadSee Send a record to another system.

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