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])
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.