Remove Operation: remove
The remove operation under the String Operations function is used to remove a specified substring or character from a given string. This operation is particularly useful for cleaning or refining data by eliminating unwanted content.
Example: Suppose you have a string “Order Number: 12345” and you want to remove the phrase “Order Number: ” to retain only the numeric value (“12345“).
Steps to Configure:
- Add a new step.
- Select Set a Variable Value from the Action dropdown.
- Enter a variable name in the Element Key field (e.g., CleanedString). This variable will store the updated string.
- Click on Form, select Functions, and choose String Operations.
- Provide the following parameters:
- Operation: Choose remove.
- Data: Enter the original string from which content will be removed (e.g., “Order Number: 12345”).
- RemoveArgument: Specify the substring or character to be removed (e.g., “Order Number: “).
- Click Save.


Outcome on Execution:
- The operation removes the specified substring (“Order Number:”) from the string.
- The updated string (“12345”) is stored in the variable defined in the Element Key field (e.g., CleanedString).
- This variable can be referenced in subsequent automation steps using the syntax ${VariableName} (e.g., ${CleanedString}).