Help Centre › Building Processes
This article describes the RPA Document functionality to search for text in an invoice.
For a full list of available functions, please read DOCUMENT functions.
Description
The DOCUMENT Search for text in an invoice function allows you to search for text in an invoice.
Setting it up
To use the DOCUMENT Search for text in an invoice function, follow these instructions:
{{popups:rpas/add:action=invoice-search}}
Once on a process map:
- Navigate to the process where you would like to add the DOCUMENT Search for text in an invoice 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 DOCUMENT Search for text in an invoice option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File | Yes | Text | - | The path to the invoice file |
| Search terms | Yes | Textarea | - | Text to search for, one per line |
| Variable | Yes | Text | - | Variable to store the result |
| Case insensitive | No | Switch | Off | Ignore case when searching |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Boolean | True if the search terms were found |
Errors
| Error | Description |
|---|---|
| File not found | The file does not exist |
Tips
- Searches the invoice text for specific terms
- Separate multiple search terms with line breaks