Skip to main content

Create transformations

Create reusable value transformations for Payload mappings, target fields, headers, parameters, modifiers, and body Elements.

Create transformations

Use a Transformation when Payloads needs to change a value before sending it, returning it, or saving it.

Transformations are Integration-level records. That means several Payloads in the same Integration can reuse the same rule where the same value conversion applies. This is useful for things like amount formatting, status mapping, date formatting, or API-specific naming rules that would otherwise be repeated across several mappings.

A good Transformation should make the intent obvious. When another admin sees it attached to a Body Element, Header, Parameter, Modifier, or Data Target field, they should be able to understand why the value changes.

When to use a Transformation

Use a Transformation when the source value is not the final value the target system or Salesforce field expects.

Common examples include:

  • converting an amount into minor units

  • formatting a date or date/time

  • changing case

  • mapping an external code to a Salesforce picklist value

  • building a derived string from an input

  • returning a boolean or number from a formula

Do not use a Transformation just to move a value from one place to another. If the value can be mapped directly, map it directly. Transformations are most helpful when they capture a real rule, not when they hide a simple mapping.

Choose the Transformation type

Payloads supports Salesforce Formula and Payloads Formula transformations.

Use Salesforce Formula when the transformation fits Salesforce's formula expression model and return types. Use Payloads Formula when the transformation needs Payloads-specific formula behaviour, options, or structured inputs.

The older Formula value may appear in metadata for compatibility. For new configuration, choose the current option shown in the UI.

Choose input and return types

Set the Input Type to the kind of value the transformation expects.

Supported input types include Boolean, Date, Date/Time, Number, Id, String, Time, Array, and Object.

Set the Return Type to the kind of value the transformation should produce.

The return type matters because downstream mappings depend on the output. For example, a Target Field mapped to a Salesforce checkbox should receive a boolean value, not the text true. If the return type does not match the destination, the Payload may build successfully but fail at runtime.

Write the formula

Write the formula for one focused conversion.

Keep transformation names specific. Convert Amount To Stripe Minor Units is easier to review than Amount Formula, because it tells the next admin what business or API rule the formula represents.

If the transformation uses options, configure those options from the formula options panel so the purpose of each option is visible to the next admin.

A Transformation record showing input type, return type, formula helper menus, formula text, and syntax checking.

The Transformation page keeps the formula, expected input type, return type, helper menus, preview, and syntax check actions in one place.

Apply and order Transformations

Transformations can be attached to Body Elements, Headers, Parameters, Modifiers and Target fields. Select the Action that owns the destination value, then open the relevant section.

For a Body Element:

  1. Find the Element in the Body tree and select its f(x) Transformation control.

  2. In Element Transformation, search the Transformation Library and select a Transformation to add it.

  3. Review the numbered Transformation Order on the right. Use Move up or Move down to change the order; use Remove to remove an entry from this Element.

  4. Configure any options shown for the selected Transformation.

  5. Select Save to apply the sequence. Select Close to leave without saving changes.

The Element Transformation modal with the reusable library on the left and the ordered sequence on the right.

The currency Element applies Normalise Currency Code. Multiple Transformations run in the configured order.

Reuse an existing Transformation when the same conversion is needed elsewhere. Changing that shared Transformation can affect every mapping that uses it; changing the order here applies to this destination value.

Test and troubleshoot

Use the Transformation UI to check syntax or run a test value where available.

Then test the Payload and review the Job. The Job shows the final body, headers, parameters, modifiers, target output, and error message if the transformation failed during runtime. The Job is the best place to confirm whether the transformed value ended up in the right part of the request or target record.

For runtime troubleshooting, see Troubleshoot Payload mappings with Job data.

What to check

Before using a Transformation in a live Payload, check that:

  • the name explains the conversion

  • the Transformation belongs to the correct Integration

  • input type matches the value being transformed

  • return type matches the field, body value, header, parameter, or modifier that receives the result

  • formula options are clear and complete

  • a test run produces the expected value

  • the Job output shows the transformed value in the right place

If a transformation is used by several Payloads, review each usage before changing it.

Use Transformations with Actions

Select the Action that consumes the value. Configure the Element, Header, Parameter, Modifier or Target field source from the available earlier Action data, then use its Transformation control to configure the conversion sequence.

The Transformation changes the selected value; it does not make a later Action’s output available earlier in the sequence. When several Transformations are applied, review their order and test the final destination value.

Did this answer your question?