fn:replace
- 1 Minute to read
- Print
- DarkLight
fn:replace
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The function fn:replace replaces all occurrences of a string in a target with a specified string. The value returned is a string data type.
Example
Values saved in a group attribute include underscores. When these values are inserted into a message, the underscore characters are replaced by a space.
The expression for inserting these values into a message is constructed as follows:
<%${fn:replace(group.CustomAttribute['Name'],'_', ' ')}%>
Structure
fn:replace(string, string, string)
Parameters
Parameter | Description |
---|---|
string | Specifies the target string. |
string | Specifies the value to replace in the target string. |
string | Specifies the value that replaces the string given in the previous parameter. |
Was this article helpful?