Skip to content

Data preparation and quality

Standardize country values

Map country aliases to configured ISO-like CRM values.

Available recipeIncludes configuration, sample data and tests

Make it your own

Review the setup and limits below, then open an editable copy in Turbyn.

Use this recipe

Your selection stays with you through signup.

What it does

Case-insensitive configured alias and code mapping with explicit unmapped outcomes.

What to customize

Configure aliases and allowed target codes.

Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.

Expected outcome

This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.

Sample input

sample-input.json

{
  "inputFields": {
    "field1": "United Kingdom"
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "GB",
    "output2": "mapped",
    "output3": "Mapped United Kingdom to GB."
  }
}

Returned fields

output1
canonical country
output2
mapped, unchanged, or unmapped
output3
reason

What changes when it runs

Reads field1 and returns mapped value; no CRM writes.

Ready to try it with your rules?

Map your inputs, test a sample and publish the version you’ve checked.

Use this recipe