Remove Comma Operation: removecomma
The removecomma operation under the String Operations function is used to remove all commas from a given string. This operation is particularly useful for cleaning numeric data or preparing strings for processing where commas might cause errors or inconsistencies.
Example: Suppose you have a string “1,234,567” that represents a number with commas for formatting. You want to remove the commas and store the cleaned value in a variable named CleanedNumber.
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., CleanedNumber). This variable will store the string without commas.
- Click on Form, select Functions, and choose String Operations.
- Provide the following parameters:
- Operation: Choose removecomma.
- Data: Enter the string with commas to be cleaned (e.g., “1,234,567”).
- Click Save.


Outcome on Execution
- The operation removes all commas from the string.
- The updated string (“1234567“) is stored in the variable defined in the Element Key field (e.g., CleanedNumber).
- This variable can be referenced in subsequent automation steps using the syntax ${VariableName} (e.g., ${CleanedNumber}).