DeleteAttachmentFromOCR
Delete given document from OCR system.
DeleteAttachmentFromOCR()DeleteAttachmentFromOCR("Invoice field","companykey")Function arguments
Dział zatytułowany „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
Dział zatytułowany „Return value”This function returns Boolean. Deletes attachment from OCR service
Examples
Dział zatytułowany „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])