FillDataFromOCR
Fill data from OCR info from given document.
Syntax
FillDataFromOCR()
FillDataFromOCR("Invoice field")
FillDataFromOCR("Invoice field", true)
Function arguments
- fieldName – (String) [Optional] Name or value of the document field from which OCR data will be used. If empty then first document with OCR data from documents list will be used.
- refreshResponse – (Boolean) [Optional] If set to true, then system will refresh response from OCR. Default is false.
Return value
This function returns Boolean.
Returns true if attachment with OCR info was found, false otherwise
Examples
Example 1:
Get OCR info from first document from documents list that have OCR info.
FillDataFromOCR()
Example 2:
Get OCR info from document from given File field.
FillDataFromOCR("Invoice")