A placeholder is a name in double curly braces, such as {{record.name}}. When the workflow runs, Scratchboard replaces it with the value. Placeholders work in every text box of a step (e-mail subject and body, notification text, field values, conditions of If steps, messages) and in message templates.
Where to find it
When you set up a step on the canvas, the Available Variables list in the step panel shows the placeholders you can use there. Click one to copy it, then paste it into a text box.
Placeholders
| Placeholder | What it gives |
|---|
{{record.<field>}} | A field of the record the workflow runs on, for example {{record.email}}. Use the field's name, not its label. |
{{record.<relation>.<field>}} | A field of a related record, one step away, for example {{record.account.name}}. |
{{oldRecord.<field>}} | The value before the change: in After Update workflows, and in Before Save and When Assigned workflows when an existing record is changed. Empty for a new record. |
{{user.name}}, {{user.email}}, {{user.id}} | The person who started the run. In the steps after an approval decision, the approver. |
{{now}} | The current date and time. |
{{today}} | Today's date in your workspace's time zone. |
{{recordUrl}} | A link to the record in Scratchboard. Your team needs to sign in to open it: use it in messages to staff. |
{{portalUrl}} | A link to the record's page on your published customer portal, or the portal's home page. Empty without a published portal. Use it in messages to customers. |
{{settings.<key>}} | A workspace setting, for example an app's own limit. Passwords, keys, payment, AI and e-mail server settings and security policies always read empty. |
{{input.<field>}} | A value someone typed into a button's form (Manual workflows). |
{{signal.<name>}} | A value that came with a signal, or the result of an earlier step (see below). |
{{vars.<name>.<field>}} | A record found by a Find Record step, or another step result saved under a name. |
{{item.<field>}}, {{itemIndex}}, {{itemCount}}, {{parentRecord.<field>}} | Inside a For Each loop: the current item, its position, the number of items, and the record that owns the loop. |
{{recordType}} | The record type of the record. |
{{signatureLink}} | The signing link, only in the steps that send it. See E-signature in workflows. |
A placeholder that is the whole value keeps its type: {{record.amount}} alone in a number field stays a number. Inside text, values are joined as text.
If nothing answers a placeholder (a misspelt field name, an empty relation), it stays as written in the result, and the run log lists it under unresolved expressions.
Results of earlier steps
A step can use what an earlier step in the same run produced:
| After this step | Use |
|---|
| Create Record | {{signal.createdRecordId}} |
| Find Record | {{vars.<name>.<field>}}, {{vars.<name>Found}} (found or not), {{vars.<name>Count}} (number of matches) |
| Call Webhook, Call API | {{signal.webhookStatus}}, {{signal.webhookResponse.<path in the answer>}} (for example .id, or .data.id when the answer has a data object) |
| Compute Field | {{signal.computedValue}} |
| AI Generate | {{signal.aiResult}} |
| Generate PDF (saved to the record) | {{signal.documentFileId}} |
| Request Approval | {{signal.approvalResolvedByName}}, {{signal.approvalNote}}, {{signal.approvalOption}}, {{signal.approvalResolvedAt}} |
| Request Signature | {{signal.signatureStatus}}, {{signal.signedFileId}}, {{signal.signatureDeclineReason}} |
| Payment steps | {{vars.payment.status}}, {{vars.paymentLink.url}} and others. See Steps: payments. |
| A step that failed (with Continue with the next step) | {{signal.lastError.code}}, {{signal.lastError.message}} |
Filters
Add a filter after a vertical bar to change how a value is shown: {{record.name|upper}}. Filters can be chained and run left to right: {{record.notes|trim|truncate:50}}. Put text arguments in quotes.
Text:
{{record.notes|default:"n/a"}} shows the text when the value is empty. Without quotes, the argument is another value: {{record.mobile|default:record.phone}}.
upper, lower, trim: capital letters, small letters, remove spaces at both ends.
{{record.title|truncate:50}} cuts the text after 50 characters and adds ... (100 characters without a number).
length: the number of characters, or of items in a list.
{{record.tags|join:" / "}} joins a list (with , when you give no separator). first and last give the first or last item.
emailDomain: alex@example.com becomes example.com. companyDomain does the same but is empty for free mailboxes such as Gmail.
json: the value as JSON, for webhooks.
Numbers:
{{record.amount|round:2}} rounds to 2 decimals (halves away from zero). round alone rounds to a whole number.
number turns text into a number; text that is not a number becomes empty, not 0.
Dates and times:
{{record.dueDate|date}} prints the date. In texts people read (e-mails, notifications, messages, action items, approval titles, stop messages, message templates) it uses your workspace's date format once one is chosen in Settings → Organization; elsewhere, and before a format is chosen, it prints 2026-11-23.
{{record.dueDate|date:"workspace"}} always uses the workspace format.
{{record.startsAt|datetime}} prints the date and the time.
{{record.dueDate|date:"D MMM YYYY"}} uses your own format (see the table below).
{{today|addDays:7}}, subtractDays, addHours, subtractHours move a date. Days follow the calendar, so the time of day stays the same across daylight-saving changes.
startOfDay, endOfDay: the first or last moment of that day.
{{record.date|atTime:"18:00"}} gives that time on that day, for example a due time. Times such as 9:30, 19:30, 7:30 pm and 7pm work. If the time cannot be read, the end of the day is used and the run log says so.
Dates use your workspace's time zone.
| Letters | Prints |
|---|
YYYY / YY | 2026 / 26 |
MMMM / MMM / MM / M | November / Nov / 11 / 11 |
DD / D / Do | 05 / 5 / 5th |
dddd / ddd | Monday / Mon |
HH / H | Hours, 24-hour clock |
hh / h | Hours, 12-hour clock |
mm / m, ss / s | Minutes, seconds |
A / a | AM or PM / am or pm |
[text] | The text as written |
Example: "ddd D MMM, h:mm A" prints "Fri 30 Oct, 2:05 PM". Other words in a format can be changed by mistake; put them in square brackets: "[Week of] D MMM".
Conditional text
Show text only when something is true:
{{#if record.vip}}Welcome back, valued customer.{{else}}Welcome.{{/if}}
{{#if record.status == "Paid"}}Thank you for your payment.{{/if}}
{{#if record.nights != 1}}s{{/if}}
{{#unless record.depositPaid}}Please pay the deposit.{{/unless}}
- Compare with
== or != and a quoted text or a number.
- Empty, false,
0, 0.00, an empty list and a missing value count as false. Everything else is true.
- Blocks can be nested, up to 8 levels. There is no "else if": put a second
{{#if}} inside the else part.
- A block that is not closed (or a stray
{{else}} or {{/if}}) leaves the whole text as written, so the mistake shows in the result. At most 200 blocks per text.
Where a step writes a value (Update Field, Update Related, Create Record), you can use a formula instead of text, for example to add 1 to a counter or work out a date. Formulas use the same functions as formula fields (ROUND, IF, COALESCE, DATEDIFF…). In a workflow step, an empty number counts as 0 in sums, so a formula that adds this payment to the amount paid works before the first payment. Filters cannot be used inside a formula.
Good to know
- Workflow conditions (the workflow's own Conditions) read the record's own fields, and there
{{record.…}} and {{signal.…}} placeholders are compared as plain text; use an If / Condition step to test related records or step results. See Conditions, branches and loops.
- Run history hides a step's text from people who may not see the fields it uses.
- Document templates (PDFs) have their own placeholder language with lists and money formats; it is described with the document templates.
Troubleshooting
| Message or symptom | Why | What to do |
|---|
| The placeholder appears as written in the message | The name is wrong, the field is empty and has no default, or the relation is empty. | Copy the placeholder from Available Variables; add a default filter. |
The {{#if}} text is sent as written | The block is not closed, or it uses "else if". | Close it with {{/if}}; nest a second block. |
default:record.phone printed the words | The argument was in quotes, so it is text. | Remove the quotes to use the field's value. |
| A date is one day off | {{now}} is a moment in time, not a calendar day. | Use {{today}} or a date field when you compare days. |
| A format printed odd letters | A word in the format contains format letters. | Put the word in square brackets. |