ReplaceList()
Replaces one or more substrings with another string.
| Marketing Cloud Engagement | ✅ Yes |
| Marketing Cloud Next | ✅ Yes |
This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).
The ReplaceList() function has three parameters:
sourceString(string): Required. The string to search.replacementString(string): Required. The replacement string.searchString1(string): Required. The string to find.
You can search for more than one substring by appending additional parameters. You can add as many search strings as necessary.
This example removes delimiting characters (|, ;, and ,) from a string of text. It replaces the delimiters with a string of text that makes the complete list easier to read.
The function returns a string in which the delimiting characters have been replaced with the replacement string.