RPAAdvanced OCR
Advanced OCR - Get query result
Advanced OCR - Get query result
Gets the first occurrence of the result of a specific query (question) 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.
Query prompt
Enter the question text, exactly as it was registered in Questions to be answered in the Advanced OCR - Analyze Document action.
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 // query exists? (Boolean)
actions["action-id"].moreOccurrences // are there more occurrences? (Boolean)
actions["action-id"].query // query prompt (Text)
actions["action-id"].result // query result (Text)
actions["action-id"].page // page (Number)
Field selection
- exists — query exists? (Boolean)
- moreOccurrences — are there more occurrences? (Boolean)
- query — query prompt (Text)
- result — query result (Text)
- page — page (Number)
Rules and Conditions
- The Analyze questions option must be enabled in the Advanced OCR - Analyze Document action.
- The comparison uses the exact text 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.