Operations
Transform
The Transform operation allows you to apply custom JavaScript code to transform your data during the processing pipeline. This operation is applied during the transformation phase and enables you to perform complex data manipulations that aren't possible with standard operations.
Overview
The Transform operation enables you to:
- Write custom JavaScript code to manipulate your data
- Apply transformations to all entities in your dataset
- Implement complex business logic for data processing
- Use the full power of JavaScript to modify field values, create new fields, or restructure data
Configuration
JavaScript Code Editor
The Transform operation provides a code editor where you can write custom JavaScript functions:
- The code should be a valid JavaScript function
- The function receives data records and should return transformed records
- You can use any JavaScript features supported by the platform
- The transformation is applied to all entities in the pipeline
Examples
Basic Data Transformation
To apply a simple transformation to all data:
- Add the Transform operation to your rule
- Write JavaScript code like:
Complex Transformations
For more complex data manipulations:
- Add the Transform operation to your rule
- Write JavaScript code that processes records:
This operation provides maximum flexibility for data processing, allowing you to implement custom logic that meets your specific requirements.