Skip to content

Replace Operation: replace

The replace operation under the String Operations function is used to replace specific content within a string with new data. This operation allows you to modify strings dynamically during automation workflows.

Note: Special characters, such as commas, or other symbols <TBD>, are not supported in any of the parameters for this operation.

Example: Suppose you have a string, “Hello [Name]! Welcome to our platform.“, and you want to replace [Name] with the actual name, “John“.

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., UpdatedString). This variable will store the modified string.
  4. Click on Form, select Functions, and choose String Operations.
  5. Provide the following parameters:
    • Operation: Choose replace.
    • Data: Enter the original string (e.g., “Hello [Name]! Welcome to our platform.”). Avoid <the mentioned> special characters in this parameter.
    • removeArgument: Specify the text to be replaced (e.g., [Name]).
    • Argument: Enter the replacement value (e.g., “John”).
  6. Click Save.
scrn-replace-operation-tabular-view
Tabular View
scrn-replace-operation-card-view
Card View

Outcome on Execution

  • The operation replaces [Name] with “John“.
  • The updated string (“Hello John! Welcome to our platform.“) is stored in the variable defined in the Element Key field (e.g., UpdatedString).
  • This variable can be referenced in subsequent automation steps using the syntax ${VariableName} (e.g., ${UpdatedString}).

Back To Top