{"title":"Codeunit 5361 Int. Rec. Couple Invoke, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/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":5361,"name":"Int. Rec. Couple Invoke","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/","path":"src/Layers/W1/BaseApp/Integration/SynchEngine/IntRecCoupleInvoke.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:5345":{"name":"Integration Rec. Synch. Invoke","url":"https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"codeunit:5338":{"name":"Integration Record Management","url":"https://jonas-paprotka.de/ref/codeunit/5338-integration-record-management/"},"table:5339":{"name":"Integration Synch. Job Errors","url":"https://jonas-paprotka.de/ref/table/5339-integration-synch-job-errors/"}},"procs":[{"name":"OnRun","line":12,"kind":"trigger","steps":[[14,"call","CheckContext",0],[15,"call","CoupleRecord",6]]},{"name":"GetContext","line":52,"kind":"procedure","params":6,"steps":[[54,"call","CheckContext",0]]},{"name":"CoupleRecord","line":70,"kind":"procedure","access":"local","params":6,"steps":[[84,"ext","codeunit",5345,"FindCoupledRecord",5],[86,"ext","codeunit",5345,"FindCoupledRecord",5],[93,"event","OnBeforeCoupleRecord",0],[95,"call","AddIntegrationRecordCoupling",4],[97,"ext","codeunit",5345,"FindCoupledRecord",5],[99,"ext","codeunit",5345,"FindCoupledRecord",5],[107,"event","OnErrorWhenCouplingRecord",0],[108,"call","LogSynchError",4],[110,"call","RemoveTrailingDots",1],[114,"event","OnAfterCoupleRecord",0]]},{"name":"AddIntegrationRecordCoupling","line":122,"kind":"procedure","access":"local","params":4,"steps":[[131,"ext","codeunit",5330,"IsIntegrationRecordChild",1],[138,"ext","codeunit",5338,"UpdateIntegrationTableCoupling",3]]},{"name":"LogSynchError","line":141,"kind":"procedure","access":"local","params":4,"steps":[[152,"ext","table",5339,"LogSynchError",4],[154,"ext","table",5339,"LogSynchError",4]]}]}