Overview
The String Manipulation command provides functionality for:- Applying any JavaScript string method (e.g.
toUpperCase,trim,slice,padStart) to a field - Operating across every object in the current collection
- Passing custom arguments to the string method
Command Type
Command Type ID: 1003Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| key | string | Specifies the field in the object where the string manipulation will be applied | Yes |
| methodName | string | The JavaScript string method to apply to the specified field | Yes |
| parameters | Array of string / number | The arguments to pass to the method. Requirements depend on the method used | Yes |
Usage Examples
Convert to Uppercase
Trim Whitespace
Slice a String
Pad a String
Replace a Substring
Common Use Cases
- Normalization: Trim whitespace or convert case across all records
- Formatting: Pad IDs or codes to a fixed length
- Data Cleaning: Remove or replace known bad substrings from a field
Related Commands
- Regex - Apply regex-based transformations to string fields
- String Split - Split a string field into an array
- Key Mapping - Rename fields after manipulation