Multiple Replace
AI-generatedSummary
Replace text in selected fields using multiple find/replace pairs
Inputs
- operation — The operation to perform
- inputSource — Choose the source of text to process
- fieldName (required) — The name of the field to process
- customText (required) — The text to process; can use expressions
- outputFieldName (required) — The field name where the result will be stored
- replacements — The find/replace pairs to apply in sequence
- options — Additional processing options such as case sensitivity
Output shape
An array of processed items
May include items with an 'error' field when continueOnFail is enabled; otherwise only successful items are returned
Examples
Example 1: Replace a field's content with a single pair
operation=multiple, inputSource=field, fieldName=title, replacements=[{find:'old',replaceWith:'new'}], options={caseSensitive:true,replaceAll:true}
Example 2: Process custom text and store result
operation=multiple, inputSource=custom, customText='{{ $json.message }}', outputFieldName=reply, replacements=[{find:'hello',replaceWith:'world'}], options={caseSensitive:false,replaceAll:true}
Example 3: Replace all string fields across nested objects
operation=multiple, inputSource=allFields, replacements=[{find:'test',replaceWith:'demo'}], options={includeNested:true,replaceAll:true}