SendAttachmentToOCR
Send given document to OCR system.
Syntax
SendAttachmentToOCR()
SendAttachmentToOCR("Invoice field","companykey")
Function arguments
- fieldName – (String) [Optional] Name of the document field from which document will be send to OCR system. If empty then first document from documents list will be send.
- companyid – (String) [Optional] if set then this value will override CompanyId setting from System settings
Return value
This function returns Boolean.
Returns true if attachment was send, false otherwise
Examples
Example 1:
Send first document from documents list to OCR system, if document was already sent does nothing.
SendAttachmentToOCR()
Example 2:
Send document from 'Invoice’ field to OCR system, if document was already send does nothing. Document will be send with companyid taken from 'companykey’ field.
SendAttachmentToOCR("Invoice",[companykey])
Example 3:
Send first document from documents list to OCR system, if document was already send does nothing. Document will be send with companyid taken from 'companykey’ field.
SendAttachmentToOCR("",[companykey])