RPAAdvanced OCR
Advanced OCR - Get word
Advanced OCR - Get word
Gets the first occurrence of a specific word in an Advanced OCR result.
Options
Document analysis
Select the Advanced OCR - Analyze Document action whose result will be used. When this action is inside an Advanced OCR - For each page action, the document of that action is used.
Word (partial or complete)
Enter the word (or part of it) to search for in the document.
Page (optional)
Enter the number of the page to search in. Leave it empty to search every page. Inside an Advanced OCR - For each page action, the current page of that action is used.
Returns
Javascript code
js
actions["action-id"].exists // word exists? (Boolean)
actions["action-id"].moreOccurrences // are there more occurrences? (Boolean)
actions["action-id"].word // word (Text)
actions["action-id"].page // page (Number)
Field selection
- exists — word exists? (Boolean)
- moreOccurrences — are there more occurrences? (Boolean)
- word — word (Text)
- page — page (Number)
Rules and Conditions
- The Advanced OCR - Analyze Document action must be run before this one.
- The search is partial (the text entered must be contained in the content) and is case-sensitive.
- When there is more than one occurrence, the first one is returned; use the moreOccurrences return to know whether there are others.