> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rwsintegration.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transform Data

> Learn how to use business rules to transform data in RWS Integration

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:

```javascript theme={null}
(context) => {
  const firstName = context.datapoint.firstName;
  const lastName = context.datapoint.lastName;

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

  return fullName;
};
```
