Workflow step
Formatter
Formatter turns a value from your Trigger or an earlier Step into the value the next Action needs. For example, turn an order total in cents into a currency amount, extract an email address from a message, or turn a CSV attachment into rows for a spreadsheet.
Add and configure Formatter
- Choose Add step → Formatter. In Setup, select a category under Action event, then Continue.
- In Configure, choose a Transform. Use Value to try a fixed example. Use Field to pick the Trigger or earlier Step field that will supply a fresh value on each run. Template lets you combine text with inserted fields. For a list or File, use Field to keep its structure.
- For settings such as a date format or timezone, Static offers presets. Use Custom to enter a supported format or map a setting. Changing the category or transform can replace its input fields.
- Select Test step. Data in shows the resolved inputs. Data out shows the fields the next Step can use. Review any Warnings and save the Step.
- In the next Action, open the data picker and select the Formatter Step’s output, or the specific field shown in the example. An Action mapped to the original Trigger field will still receive its original value. See Data mapping.
| Category | When to use it |
|---|---|
| Text | Clean names, extract contact details, replace text, split identifiers, or supply a missing value. |
| Date / Time | Convert a timestamp, shift a deadline, or measure the time between two events. |
| Numbers | Calculate amounts, display currencies, change decimal marks, or standardize phone numbers. |
| Utilities | Translate codes with a lookup table, work with lists, or import a CSV. |
Text examples
Clean a contact name before creating the contact
Choose Text → Trim Whitespace. Set Input to Field and select the name from your form submission. With this sample, the spaces inside the name stay intact.
{"input": " Ada Lovelace "}Data out contains {"output":"Ada Lovelace"}. In your CRM’s create-contact Action, map the name to Formatter’s output. To clean a list of names, map the entire array to Input. For example, [" Ada ", " Lin "] produces ["Ada", "Lin"] in the same order.
Extract, split, or supply a default
- Extract Email Address — With Input set to
Reply to ada@example.com or lin@example.com, output isada@example.com. It returns the first address. A message without an address gives an empty string. Use a Filter to require a nonempty result before sending a reply. - Split Text — For a product code
EU-0042-BLUE, set Separator to-and Segment to Second. Map output to the SKU field to keep0042as text. Choose All as Separate Fields if you also need the region and color. The result then includesfields.field_1,fields.field_2, andfields.field_3alongside the full array in output. - Default Value — Map an optional company field to Input and enter
"Individual"in Default Value, including the JSON quotes. A missing field,null, or an empty string givesIndividual. Values such as0andfalsepass through. A string of spaces also passes through, so trim it first if your form allows whitespace-only answers.
Date / Time examples
Show a payment date in the customer’s timezone
Choose Date / Time → Format. For a payment recorded as 1704067200, set From Format to X (Unix seconds), To Format to YYYY-MM-DD, and To Timezone to UTC. The output is 2024-01-01. Change only To Timezone to America/New_York and the same payment displays as 2023-12-31. Map that result to the date on the customer’s receipt.
Check the provider’s timestamp unit before selecting X. For a local date and time without an offset, set From Format and From Timezone to match the sender. Invalid dates and local times skipped by daylight saving fail to parse. A time-only input uses the event ingestion date as its anchor on retries. In custom output formats, Z renders offsets like +0000 and ZZ renders +00:00.
Calculate a deadline or measure response time
- Add/Subtract Time — Set Input to
2026-04-30T16:00:00Z, Expression to+2 hours, To Timezone toUTC, and To Format toYYYY-MM-DD HH:mmusing Custom. The result is2026-04-30 18:00. Map output to the ticket’s deadline field. Use Delay if the Workflow also needs to wait. - Compare Dates — Set Start Date to the ticket opening time,
2026-04-30T16:00:00Z, and End Date to the first reply,2026-04-30T17:30:00Z. In Data out,difference_minutesis90anddifference_hoursis1.5. Map the numeric minutes field into a Filter to check a response-time target. Reversing the inputs gives-90minutes.
Numbers examples
Turn an order total in cents into a receipt amount
- Add Numbers → Spreadsheet-Style Formula. Set Formula to Template, type
=, insert the order’s numeric cents field from the picker, and type/ 100. With a sample amount of1299, Data in shows the resolved formula=1299 / 100and Data out contains{"output":12.99}. Use this numeric output for calculations. - Add Numbers → Format Currency. Map the first Formatter’s output to Input. Select USD, the US English Currency Locale, and the
¤#,##0.00Currency Format. - The second output is the string
$12.99. Map it into the receipt message. Currency formatting labels the supplied amount in the selected currency. A conversion between currencies requires an exchange rate.
Reformat an imported number, evaluate a formula, or normalize a phone
- Perform Math Operation — To total several line amounts, select Addition and map their numeric array into Values. Try
[10, 3.5, 2]as a fixed value. The numeric output is15.5. - Format Number — For the text
1.234,50, select Input Decimal Mark → Comma and To Format → 1,234.56. The result is the string1,234.50. This transform recognizes grouping with the selected input convention and preserves the fractional digits. For math, supply plain numeric values such as1234.5. - Spreadsheet-Style Formula — To add 20% to a subtotal, try
=ROUND(12.50 * 1.20, 2)in Formula. output is the number15. To use each order’s subtotal, switch Formula to Template and replace12.50with the numeric subtotal from the picker. Open Supported functions for the available functions. Spreadsheet cell references such asA1are unsupported. - Format Phone Number — With Input set to
(213) 373-4253, select the United States under Country and E.164 under To Format. Map+12133734253into the CRM’s phone field. Country provides the dialing context for a national number. For a phone number embedded in a message, use Text → Extract Phone Number.
Utilities examples
Translate a form code into a ticket priority
Choose Utilities → Lookup Table. Map the form’s urgency code to Lookup Key, paste the following JSON into Lookup Table, and enter "Normal" in Fallback.
{
"P1": "Urgent",
"P2": "High"
}Map output to the ticket’s priority. Test both a match and an unknown code. P1 returns Urgent, while P3 returns Normal. Keys are case-sensitive, so p1 also returns Normal.
Split a list of tags and reuse it
Choose Utilities → Text to Line-item. For Input vip, , renewal, set Separator to a comma and set both Trim Items and Remove Empty Items to True. output is ["vip","renewal"]. Map the whole array into an Action that accepts multiple tags.
To include those same tags in a message, add Line-item to Text, map the array to Line Items, and set Separator to a comma followed by a space. The result is vip, renewal. To take a single tag instead, use Pick from List with the array in Items. Under Position → Custom, Index 0 returns vip and -1 returns renewal.
Import a CSV and map it by row or by column
Choose Utilities → Import CSV. Paste this sample into CSV File or Content, select Comma for Delimiter, and set First Row Contains Headers to True. For an incoming CSV attachment, switch the input to Field and select the File from the earlier Step. A download URL alone cannot be parsed.
order_id,customer
0017,"Lee, Ada"
0018,LinIn Data out, the quoted comma stays inside the customer’s name and the order IDs keep their leading zeros.
{
"output": [
{"order_id": "0017", "customer": "Lee, Ada"},
{"order_id": "0018", "customer": "Lin"}
],
"line_items": {
"order_id": ["0017", "0018"],
"customer": ["Lee, Ada", "Lin"]
},
"headers": ["order_id", "customer"]
}- One Action per row — Add a Loop, choose Array, and select Formatter’s output. Inside the Loop, map Current loop item → order_id and customer into the Action. This sample gives two iterations.
- Multiple spreadsheet rows in one Action — In Google Sheets → Create Multiple Spreadsheet Rows, map
line_items.order_idto the order ID column andline_items.customerto the customer column. The first spreadsheet row pairs0017withLee, Ada.
If the first line is already data, set First Row Contains Headers to False. Each row in output will be an array of cells, including the first row. If parsing fails, check that every row has the same number of columns and that any header names are unique and nonempty. For zipped attachments, extract the CSV with Archive first.
Test representative inputs and limits
Use Retest step after changing the transform, its settings, or the upstream sample. If a downstream result looks wrong, compare Formatter’s Data out with the receiving Action’s input in Run history. Check which field the Action maps and whether it expects text, a number, one row, or a full list.
Formatter allows up to 1 MiB each for resolved input and output, 262,144 Unicode code points per string, 10,000 line items, and 1,000 lookup rows. Import CSV accepts up to 256 columns. A Loop processes at most 1,000 items, so a CSV can parse successfully and still exceed the Loop’s limit. For structural JSON edits, see Workflow transformations.