Skip to content

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:

  1. Add a new step.
  2. Select Set a Variable Value from the Action dropdown.
  3. Enter a variable name in the Element Key field (e.g., CleanedString). This variable will store the updated string.
  4. Click on Form, select Functions, and choose String Operations.
  5. 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: “).
  6. Click Save.
Tabular View
Tabular View
Card View
Card View

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}).

Back To Top