DeleteAttachmentFromOCR
Delete given document from OCR system.
Syntax
DeleteAttachmentFromOCR()
DeleteAttachmentFromOCR("Invoice field","companykey")
Function arguments
- fieldName – (String) [Optional] Name of the document field from which document will be deleted from OCR system. If empty then first document from documents list will be deleted.
- companyid – (String) [Optional] if set then this value will override CompanyId setting from System settings
Return value
This function returns Boolean.
Deletes attachment from OCR service
Examples
Example 1:
Deletes first document from documents lists that was send to OCR from OCR system.
DeleteAttachmentFromOCR()
Example 2:
Deletes document from 'Invoice’ field from OCR system. Document will be send with companyid taken from 'companykey’ field.
DeleteAttachmentFromOCR("Invoice",[companykey])
Example 3:
Deletes first document from documents list that was send to OCR from OCR system. Document will be send with companyid taken from 'companykey’ field.
DeleteAttachmentFromOCR("",[companykey])