Skip to main content
Transformation rules modify the data structure, combine fields, perform calculations, or apply any custom logic.

When to use

  • Combine first name + last name
  • Remove punctuation from document numbers
  • Convert unit of measurement
  • Any other modification to specific fields

How it works

The value returned by the function is what is used by the field.

Example

To concatenate first name + last name:
(context) => {
  const firstName = context.object.firstName;
  const lastName = context.object.lastName;

  const fullName = `${firstName} ${lastName}`;

  return fullName;
};