String Replace Documentation
Version: 1.0.0
Retrieved: 2025-10-09 15:16:23
String Replace
Used for replacing all instances of a text on a specific property on a message.
Settings
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Source Property | String 1 to 64 in length | The property that contains the string to do the replace operation on | data |
| Target Property | String 1 to 64 in length | The property that will contain the result of the replace operation | data |
| Old Value | String 1 to 256 in length | The text to replace | `` |
| New Value | String 0 to 256 in length | The text the will replace the old value | `` |
Example Successful Processing
When the Source Property can be found the module will try to find all the instances of Old Value and replace that with New Value. If Old Value cant be found the message will be left intact.
# Settings:
Source Property = "message"
Target Property = "result"
Old Value = "Sweden"
New Value = "World"
# Incoming message
{
'data':{
'message':'Hello Sweden',
'timestamp': '2019-08-10 16:23:44'
}
}
# Outgoing message:
{
'data':{
'message':'Hello World',
'timestamp': '2019-08-10 16:23:44'
}
}
Example Missing Source Property
If the Source Property can't be found on the message it will just pass through.
# Settings:
Source Property = "someText"
Target Property = "result"
Old Value = "Sweden"
New Value = "World
# Incoming message
{
'data':{
'message':'Hello Sweden',
'timestamp': '2019-08-10 16:23:44'
}
}
# Outgoing message:
{
'data':{
'message':'Hello Sweden',
'timestamp': '2019-08-10 16:23:44'
}
}
Array Modules
Transformation
Data Conversions