Transformations
Transformations modify extracted values after extraction. You can chain multiple transformations together.
Available Transformations
Section titled “Available Transformations”| Transformation | Description |
|---|---|
trim |
Remove leading/trailing whitespace |
prefix |
Add text to the beginning |
suffix |
Add text to the end |
replace |
Find and replace text |
regex |
Extract using regular expression |
cast |
Convert to number (integer or float) |
json_parse |
Parse JSON string |
json_path |
Extract value from JSON using path |
script |
Custom JavaScript transformation |
Remove whitespace from the beginning and end of the value.
Transformation: trimprefix / suffix
Section titled “prefix / suffix”Add text to the beginning or end of the value.
Transformation: prefixValue: "https://example.com"Transformation: suffixValue: "?ref=rtila"replace
Section titled “replace”Find and replace text.
| Parameter | Description |
|---|---|
find |
Text to find |
replace_with |
Replacement text |
flags |
Regex flags (e.g., g for global) |
Transformation: replaceFind: "$"Replace With: ""Flags: gExtract a specific part of the value using a regular expression.
| Parameter | Description |
|---|---|
pattern |
Regular expression pattern |
group |
Capture group number (0 = full match) |
flags |
Regex flags |
default_value |
Value if no match found |
Transformation: regexPattern: \$(\d+\.\d{2})Group: 1Default Value: 0Convert the value to a number.
| Parameter | Description |
|---|---|
to |
Target type: integer or float |
default_value |
Value if conversion fails |
Transformation: castTo: floatDefault Value: 0json_parse
Section titled “json_parse”Parse a JSON string into an object.
| Parameter | Description |
|---|---|
default_value |
Value if parsing fails |
json_path
Section titled “json_path”Extract a value from a JSON object using a dot-notation path.
| Parameter | Description |
|---|---|
path |
Dot-notation path (e.g., data.items[0].name) |
Transformation: json_pathPath: data.results[0].pricescript
Section titled “script”Run custom JavaScript to transform the value. The current value is available as value.
| Parameter | Description |
|---|---|
code |
JavaScript code. Must return the transformed value. |
default_value |
Value if the script fails |
Transformation: scriptCode: return value.toUpperCase().replace("USD", "").trim();Default Value: ""Chaining Transformations
Section titled “Chaining Transformations”Transformations are applied in order. You can chain them:
1. trim2. replace: "$" → ""3. cast: float
Adding Transformations
Section titled “Adding Transformations”- In the Visual Builder, select a dataset property.
- Click Edit Transformations.
- Choose a transformation type from the dropdown.
- Click Add.
- Configure the transformation parameters.
- Drag to reorder transformations.
- Click Save & Close.