{"title":"Codeunit 884 ReadSoft OCR Master Data Sync, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/884-readsoft-ocr-master-data-sync/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":884,"name":"ReadSoft OCR Master Data Sync","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/884-readsoft-ocr-master-data-sync/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/884-readsoft-ocr-master-data-sync/source/","path":"src/Layers/W1/BaseApp/eServices/EDocument/ReadSoftOCRMasterDataSync.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:1294":{"name":"OCR Service Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1294-ocr-service-mgt/"},"table:1270":{"name":"OCR Service Setup","url":"https://jonas-paprotka.de/ref/table/1270-ocr-service-setup/"},"codeunit:4102":{"name":"Temp Blob List","url":"https://jonas-paprotka.de/ref/codeunit/4102-temp-blob-list/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"}},"procs":[{"name":"SyncMasterData","line":60,"kind":"procedure","params":2,"steps":[[65,"ext","codeunit",1294,"GetOcrServiceSetupExtended",2],[70,"write",1270,"Modify"],[74,"call","Initialize",0],[78,"call","SyncVendors",2],[85,"write",1270,"Modify"]]},{"name":"ResetLastSyncTime","line":91,"kind":"procedure","params":0,"steps":[[93,"call","IsSyncEnabled",0],[99,"write",1270,"Modify"]]},{"name":"CheckSyncResponse","line":120,"kind":"procedure","access":"local","params":3,"steps":[[131,"call","TryLoadXml",2],[152,"call","ParseUpdateResult",5],[154,"call","ParseServiceError",5]]},{"name":"ParseUpdateResult","line":166,"kind":"procedure","access":"local","params":5,"steps":[[188,"ext","codeunit",1294,"LogActivitySucceeded",3]]},{"name":"ParseServiceError","line":192,"kind":"procedure","access":"local","params":5,"steps":[[208,"ext","codeunit",1294,"LogActivityFailed",3]]},{"name":"SyncVendors","line":212,"kind":"procedure","access":"local","params":2,"steps":[[230,"call","GetModifiedVendors",3],[231,"call","GetVendorBankAccounts",3],[233,"ext","codeunit",4102,"Count",0],[234,"ext","codeunit",4102,"Count",0],[235,"call","GetPortionSize",0],[252,"call","CheckOrganizationId",0],[254,"call","OpenWindow",1],[256,"call","SyncMasterDataEntities",7],[257,"call","VendorsUri",0],[261,"call","SyncMasterDataEntities",7],[262,"call","VendorBankAccountsUri",0],[265,"call","CloseWindow",0]]},{"name":"SyncMasterDataEntities","line":270,"kind":"procedure","access":"local","params":7,"steps":[[283,"ext","codeunit",4102,"Count",0],[299,"call","UpdateWindow",0],[301,"call","GetMasterDataEntitiesXml",4],[302,"event","OnBeforeSendRequest",0],[303,"ext","codeunit",1294,"RsoRequest",7],[304,"call","LogTelemetryFailedMasterDataSync",1],[305,"ext","codeunit",1294,"LogActivityFailed",3],[308,"call","CheckSyncResponse",3],[309,"ext","codeunit",1294,"LogActivityFailed",3],[314,"call","LogTelemetrySuccessfulMasterDataSync",1]]},{"name":"GetModifiedVendors","line":318,"kind":"procedure","access":"local","params":3,"steps":[[326,"call","GetModifiedVendorXml",1],[327,"call","AddToBuffer",2]]},{"name":"GetVendorBankAccounts","line":331,"kind":"procedure","access":"local","params":3,"steps":[[339,"event","OnBeforeGetVendorBankAccounts",1],[351,"call","AddToBuffer",2],[355,"call","GetVendorBankAccountXml",1],[357,"call","AddToBuffer",2]]},{"name":"GetMasterDataEntitiesXml","line":367,"kind":"procedure","access":"local","params":4,"steps":[[375,"call","Min",2],[375,"ext","codeunit",4102,"Count",0],[377,"ext","codeunit",4102,"Get",2],[378,"call","GetFromBuffer",1]]},{"name":"GetModifiedVendorXml","line":385,"kind":"procedure","access":"local","params":1,"steps":[[395,"call","AddElement",3],[396,"call","AddElement",3],[397,"call","AddElement",3],[398,"call","AddElement",3],[399,"call","AddElement",3],[400,"call","AddElement",3],[401,"call","AddElement",3],[402,"call","AddElement",3]]},{"name":"GetVendorBankAccountXml","line":408,"kind":"procedure","access":"local","params":1,"steps":[[423,"call","AddElement",3],[424,"call","AddElement",3],[425,"call","AddElement",3],[426,"call","AddElement",3],[433,"call","AddElement",3],[434,"call","AddElement",3],[435,"call","AddElement",3],[436,"call","AddElement",3],[437,"call","AddElement",3],[438,"call","AddElement",3]]},{"name":"AddToBuffer","line":469,"kind":"procedure","access":"local","params":2,"steps":[[474,"ext","codeunit",4100,"CreateOutStream",1],[476,"ext","codeunit",4102,"Add",1]]},{"name":"GetFromBuffer","line":479,"kind":"procedure","access":"local","params":1,"steps":[[485,"ext","codeunit",4100,"HasValue",0],[487,"ext","codeunit",4100,"CreateInStream",1]]},{"name":"CheckOrganizationId","line":503,"kind":"procedure","access":"local","params":0,"steps":[[507,"ext","codeunit",1294,"UpdateOrganizationInfo",1]]},{"name":"GetPortionSize","line":513,"kind":"procedure","access":"local","params":0,"steps":[[519,"event","OnGetPortionSize",0],[520,"call","MaxPortionSize",0],[521,"call","MaxPortionSize",0]]}]}