36
To be able to process multiple companies using Kofax OCR we need to be able to send & receive the buyerid which can be setup in the Kofax portal.
E.g. for the sending process the function UploadImage in Codeunit 1294 has to extended by parameter buyerid.
UploadImage(VAR TempBlob : Record TempBlob;FileName : Text;ExternalReference : Text[50];Template : Code[20];LoggingRecordId : RecordID) : Boolean
GetOcrServiceSetup(TRUE);
APIPart := STRSUBSTNO(
'files/rest/image2?filename=%1&customerid=&batchexternalid=%2&buyerid=&documenttype=%3&sortingmethod=OneDocumentPerFile',
URLEncode(FileName),ExternalReference,Template);
HttpRequestURL := STRSUBSTNO('%1/%2',OCRServiceSetup."Service URL",APIPart);
EXIT(UploadFile(TempBlob,HttpRequestURL,'*/*','application/octet-stream',LoggingRecordId));
E.g. for the sending process the function UploadImage in Codeunit 1294 has to extended by parameter buyerid.
UploadImage(VAR TempBlob : Record TempBlob;FileName : Text;ExternalReference : Text[50];Template : Code[20];LoggingRecordId : RecordID) : Boolean
GetOcrServiceSetup(TRUE);
APIPart := STRSUBSTNO(
'files/rest/image2?filename=%1&customerid=&batchexternalid=%2&buyerid=&documenttype=%3&sortingmethod=OneDocumentPerFile',
URLEncode(FileName),ExternalReference,Template);
HttpRequestURL := STRSUBSTNO('%1/%2',OCRServiceSetup."Service URL",APIPart);
EXIT(UploadFile(TempBlob,HttpRequestURL,'*/*','application/octet-stream',LoggingRecordId));
STATUS DETAILS
Needs Votes
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future.
Best regards,
Business Central Team