{"title":"Codeunit 5331 CRM Coupling Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/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":5331,"name":"CRM Coupling Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/source/","path":"src/Layers/W1/BaseApp/Integration/Dataverse/CRMCouplingManagement.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":{"table:5331":{"name":"CRM Integration Record","url":"https://jonas-paprotka.de/ref/table/5331-crm-integration-record/"},"page:5336":{"name":"CRM Coupling Record","url":"https://jonas-paprotka.de/ref/page/5336-crm-coupling-record/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"table:5332":{"name":"Coupling Record Buffer","url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/"}},"procs":[{"name":"IsRecordCoupledToCRM","line":19,"kind":"procedure","params":1,"steps":[[23,"ext","table",5331,"IsRecordCoupled",1]]},{"name":"IsRecordCoupledToNAV","line":26,"kind":"procedure","params":2,"steps":[[31,"ext","table",5331,"FindRecordIDFromID",3]]},{"name":"DefineOptionMapping","line":43,"kind":"procedure","params":5,"steps":[[49,"call","AssertTableIsMapped",1],[50,"ext","page",5336,"SetSourceRecordID",2],[58,"ext","codeunit",5330,"CreateOptionMapping",3],[59,"ext","table",5332,"GetPerformInitialSynchronization",0],[61,"ext","table",5332,"GetInitialSynchronizationDirection",0]]},{"name":"DefineCoupling","line":70,"kind":"procedure","params":5,"steps":[[76,"call","AssertTableIsMapped",1],[77,"ext","page",5336,"SetSourceRecordID",1],[85,"ext","table",5331,"CoupleRecordIdToCRMID",2],[86,"ext","table",5332,"GetPerformInitialSynchronization",0],[88,"ext","table",5332,"GetInitialSynchronizationDirection",0]]},{"name":"RemoveCoupling","line":97,"kind":"procedure","params":1,"steps":[[101,"ext","codeunit",5330,"RemoveCoupling",1]]},{"name":"RemoveCoupling","line":104,"kind":"procedure","params":1,"steps":[[108,"call","RemoveCouplingWithTracking",2]]},{"name":"RemoveCoupling","line":111,"kind":"procedure","params":3,"steps":[[115,"call","RemoveCouplingWithTracking",4]]},{"name":"RemoveCouplingWithTracking","line":118,"kind":"procedure","params":2,"steps":[[120,"call","RemoveSingleCoupling",2]]},{"name":"RemoveCouplingWithTracking","line":123,"kind":"procedure","params":4,"steps":[[125,"call","RemoveSingleCoupling",4]]},{"name":"RemoveSingleCoupling","line":128,"kind":"procedure","access":"local","params":2,"steps":[[133,"ext","table",5331,"FindByRecordID",1],[136,"ext","codeunit",5330,"RemoveCoupling",1],[140,"write",5331,"Insert"]]},{"name":"RemoveSingleCoupling","line":143,"kind":"procedure","access":"local","params":4,"steps":[[148,"ext","table",5331,"FindByCRMID",1],[151,"ext","codeunit",5330,"RemoveCoupling",3],[155,"write",5331,"Insert"]]}]}