Help Centre › Functions & Formulas
This article describes the RPA Data functionality to replace text in a variable.
For a full list of available functions, please read DATA functions.
Description
The DATA Replace text in a variable function allows you to replace text in a variable.
Setting it up
To use the DATA Replace text in a variable function, follow these instructions:
{{popups:rpas/add:action=variable-replace}}
Once on a process map:
- Navigate to the process where you would like to add the DATA Replace text in a variable function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the DATA Replace text in a variable option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Variable | Yes | Text | - | The variable to modify |
| Find | Yes | Text | - | The text to find |
| Replace | No | Text | - | The replacement text (leave empty to delete) |
| Count | No | Number | - | Number of replacements (leave blank for all) |
Output variables
This action does not produce output variables.
Errors
This action does not produce specific errors.
Tips
- Replaces text within a variable value
- Leave Replace empty to remove the found text
- Leave Count blank to replace all occurrences