Workflow transformations
Use a transformation Step to prepare data before an Action: format a timestamp, clean text, calculate a value, or reshape JSON. Later Steps select the resulting fields through Insert data.
Choose the right Step
| Step picker choice | Use it for |
|---|---|
| Formatter | Date, number, text, formula, CSV, lookup, and list operations using configured inputs. |
| Code | JavaScript DSL logic configured directly on a Step with mapped inputs. |
Use Formatter for built-in operations and Code to reshape JSON or apply custom logic. Keep app writes and messages in Actions, where their account, inputs, and results can be inspected.
The Formatter guide includes input binding, concrete examples, CSV, and output selection.
Configure Formatter
- Select an add-step control before the receiving Action and choose Formatter.
- In Setup, Formatter by FastHook is the app. Choose Date / Time, Numbers, Text, or Utilities as the Action event.
- Select Continue. In Configure, choose a Transform and complete its fields.
- Use Value for a constant, Field to select available flow data, or Template to combine text and inserted data where offered. Preset fields offer Static / Custom controls.
- Continue to Test, select Test step, and inspect Data in, Data out, and any Warnings.
- Save the Step, then map its output into the receiving Action.
The operation determines which inputs are required. Changing the category or transform can replace those fields, so review all mappings and retest afterwards. Retest the upstream Step first if its saved sample has changed.
The current catalog includes Format, Add/Subtract Time, Compare Dates, Perform Math Operation, Spreadsheet-Style Formula, text cleanup and extraction, Lookup Table, Import CSV, and list conversions. Use the choices displayed in the editor for the complete supported operations.
For example, map an incoming timestamp into Date / Time → Format, choose the input format and timezone, and select the desired output format. In the next Action, select this Formatter's result instead of the original timestamp.
Understand Formatter outputs and limits
Formatter returns an object. Scalar and list results normally appear under output in the field picker. Some operations return additional fields: Compare Dates includes timestamps and duration details; Import CSV can also expose headers and line items. Inspect Data out instead of assuming every operation returns only text.
Date parsing is strict. Use From Format = X for Unix seconds and To Format = X to produce Unix seconds. They are not milliseconds. Supported formats include a bounded Moment-style token set and IANA timezone names. In this formatter, Z produces an offset without a colon, and ZZ includes a colon. Invalid dates and daylight-saving gaps fail; time-only values use the event ingestion time as their date anchor.
Number parsing requires clean numeric input rather than currency symbols and grouping separators. Currency formatting does not convert exchange rates. Text length counts Unicode code points. Lookup keys are case-sensitive; custom list indexes start at zero, with negative indexes counting from the end.
Resolved input and output are each limited to 1 MiB, text to 262,144 code points, line-item operations to 10,000 items, and lookup tables to 1,000 rows. A formula uses the supported functions shown in its editor, not an unrestricted spreadsheet engine. Test empty, missing, and malformed values as well as a normal example.
Formatter tests compute a result without sending a downstream Action. Advanced clients can use the authenticated Control API's GET /v1/workflow-formatter/catalog and POST /v1/workflow-formatter/test; the latter returns data_in, data_out, output_schema, and warnings.
Run JavaScript in a Code step
Use Code to run FastHook's bounded JavaScript DSL directly in a workflow step. Configure the code and map its inputs in the editor, inspect the test output, and select those fields downstream.
Verify the receiving Action
After transforming data, reopen the next Action's Configure stage and select fields from this Step through Insert data. A transformation does not rewrite mappings that explicitly reference the original Trigger or another Step.
Test representative data and inspect a fresh normal run in Run history. Compare the transformation input, output, and receiving Action input. Use Error handling when malformed input needs explicit recovery.