Skip to content

Split Operation: split

The split operation under the String Operations function is used to extract the first part of a string based on a specified delimiter or character. This operation is helpful for parsing strings and isolating the first segment for use in automation workflows.

Example: Suppose you have a string “John Doe, Manager” representing employee details separated by the delimiter “,”. You want to extract the first segment, “John Doe“, and store it in a variable named EmployeeFirstName.

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., EmployeeName). This variable will store the resulting list of split values.
  4. Click on Form, select Functions, and choose String Operations.
  5. Provide the following parameters:
    • Operation: Choose split.
    • Data: Enter the string to be split (e.g., “John Doe, Manager”)
    • Argument: Specify the delimiter or character to split by (e.g., “,”).
  6. Click Save.
scrn-split-operation-tabular-view
Tabular View
scrn-split-operation-card-view
Card View

Outcome on Execution

  • The operation splits the string “John Doe, Manager” using the delimiter “,”.
  • The result of the operation is the first segment of the string, “John Doe”.
  • The extracted value, “John Doe”, is stored in the variable defined in the Element Key field (e.g., EmployeeName).
  • This variable can be referenced in subsequent automation steps using the syntax ${VariableName} (e.g., ${EmployeeName}).

Back To Top