Skip to Content
MappingsThe mapping editor

The mapping editor

Open a mapping from the migration’s Mappings tab or directly via /mappings/<id>. The editor has three panes:

PaneWhat it does
EditorEdit the JSONata expression with syntax highlighting.
Sample inputPaste a source row. The editor evaluates against it.
PreviewThe live output of running the expression on the sample.

Saving a change

Saving creates a new mapping version. The migration’s mapping automatically advances to the new version — past versions stay inspectable in the version history but no migration references them unless you re-pin one deliberately.

Saving a mapping does not re-run anything. Records that were already staged keep their old payloads until the next transform run touches them.

Forking a default template

You can’t edit a default template directly. Clicking Fork on a migration’s mapping does three things:

  1. Copies the current default template’s version into a new tenant-owned template.
  2. Repoints this migration’s mapping at the fork.
  3. Leaves other migrations untouched — they stay on the default.

After forking, edits save into your fork’s version history.

Dry-running without mutating

To see the effect of a change on real data without writing a new version: use the Sample input pane with a real source row. It runs the expression in-browser and shows the output. No version is created, nothing downstream changes.

This is the loop you want while iterating:

  1. Extract (or reuse recent extract data).
  2. Paste a row into Sample input.
  3. Tweak the expression until the preview looks right.
  4. Save — new version, migration auto-advances.
  5. Run a transform-only pass and inspect the staged records.
  6. Run load when you’re happy.

Diffing versions

Every mapping’s page lists its version history. Click two versions to see a side-by-side diff of the JSONata. Useful when you’re unsure what changed between the run that worked and the run that didn’t.

Last updated on