Replace
Last updated
Was this helpful?
Last updated
Was this helpful?
This pre-built action, located under @Generic Element, instructs Avo Assure to replace a specified string with a recommended one, storing the result in a dynamic variable.
Input Value: <actual string>;<string to be replaced>;<string to replace>
<actual string>
(Required)
This is the original string that contains the text to be modified.
<string to be replaced>
(Required)
This is the specific part of the original string that needs to be replaced
<string to be replaced>
(Required)
This is the new string that will take the place of the one being replaced
Output Value:
<Dynamic Variable >
(Required)
This variable stores the replaced string
<Dynamic Variable >
(Optional)
This variable store the status as true or false
Example: Replace a word in string (Michael Brown) by replacing (Brown) with (Smith) The Replace action takes the value from the Input value column (Michael Brown), finds a specific string within it (Brown), and replaces it with another string (Smith). The updated string (Michael Smith) is stored in the {Replaced value} variable, whereas the operation status is stored in the {Status} variable:
True if the replacement successful or
False if the string to be replaced is not found
knowledge Bites: Below are some examples of different string scenarios
Text Strings
Michael Brown;Brown;Smith
Michael Smith
Numeric Strings
12345;23;98
19845
Special Character
abc@domain.com;abc;order
order@domain.com
Alphanumeric strings
ID8765;8765;2345
ID2345