{"title":"Table 5332 Coupling Record Buffer, extension points 29","url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/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":"table","id":5332,"name":"Coupling Record Buffer","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/source/","path":"src/Layers/W1/BaseApp/Integration/Dataverse/CouplingRecordBuffer.Table.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:5334":{"name":"CRM Option Mapping","url":"https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/"},"codeunit:5344":{"name":"CRM Product Name","url":"https://jonas-paprotka.de/ref/codeunit/5344-crm-product-name/"},"table:5331":{"name":"CRM Integration Record","url":"https://jonas-paprotka.de/ref/table/5331-crm-integration-record/"},"table:5332":{"name":"Coupling Record Buffer","url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/"},"codeunit:5334":{"name":"CRM Setup Defaults","url":"https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/"},"table:5335":{"name":"Integration Table Mapping","url":"https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/"},"codeunit:7200":{"name":"CDS Integration Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/7200-cds-integration-mgt/"},"codeunit:5332":{"name":"Lookup CRM Tables","url":"https://jonas-paprotka.de/ref/codeunit/5332-lookup-crm-tables/"},"codeunit:5340":{"name":"CRM Integration Table Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/"}},"procs":[{"name":"CRM Name.OnLookup","line":31,"kind":"trigger","steps":[[33,"call","LookUpCRMName",0]]},{"name":"CRM Name.OnValidate","line":36,"kind":"trigger","steps":[[42,"call","FindCRMOptionByName",2],[44,"ext","table",5334,"AssertCRMOptionIdCanBeMapped",2],[46,"ext","codeunit",5344,"CDSServiceName",0],[48,"call","FindCRMRecordByName",1],[50,"ext","table",5331,"AssertRecordIDCanBeCoupled",2],[51,"call","CalcCRMName",0],[53,"ext","codeunit",5344,"CDSServiceName",0]]},{"name":"CRM ID.OnValidate","line":97,"kind":"trigger","steps":[[99,"call","CalcCRMName",0]]},{"name":"Create New.OnValidate","line":108,"kind":"trigger","steps":[[116,"validate",5332,"Sync Action"],[119,"validate",5332,"CRM ID"],[121,"validate",5332,"CRM Option Id"],[123,"validate",5332,"Sync Action"],[125,"validate",5332,"CRM ID"],[127,"validate",5332,"CRM Option Id"]]},{"name":"CRM Option Id.OnValidate","line":154,"kind":"trigger","steps":[[156,"call","CalcCRMName",0]]},{"name":"Initialize","line":191,"kind":"procedure","params":2,"steps":[[200,"validate",5332,"NAV Table ID"],[202,"call","NameValue",1],[204,"ext","codeunit",5334,"GetCRMTableNo",1],[206,"ext","codeunit",5334,"GetDefaultDirection",1],[207,"validate",5332,"Sync Action"],[209,"validate",5332,"Sync Action"],[211,"call","FindCRMId",0],[212,"call","CalcCRMName",0],[213,"validate",5332,"Sync Action"],[217,"ext","table",5335,"FindMappingForTable",1],[218,"ext","table",5335,"GetDirection",0],[219,"validate",5332,"Sync Action"],[221,"validate",5332,"Sync Action"],[222,"call","FindCRMOptionId",0],[223,"validate",5332,"Sync Action"],[228,"event","OnAfterInitialize",0]]},{"name":"FindCRMId","line":236,"kind":"procedure","access":"local","params":0,"steps":[[240,"ext","table",5331,"FindIDFromRecordID",2]]},{"name":"FindCRMRecordByName","line":256,"kind":"procedure","access":"local","params":1,"steps":[[263,"ext","codeunit",5334,"GetNameFieldNo",1],[269,"ext","codeunit",5334,"GetNameFieldNo",1],[275,"call","NameValue",1],[276,"call","PrimaryKeyValue",1]]},{"name":"FindCRMOptionByName","line":282,"kind":"procedure","access":"local","params":2,"steps":[[293,"event","OnFindCRMOptionByName",0],[308,"ext","codeunit",7200,"GetOptionSetMetadata",2]]},{"name":"LookUpCRMName","line":319,"kind":"procedure","params":0,"steps":[[325,"ext","codeunit",5332,"LookupOptions",5],[327,"ext","table",5334,"AssertCRMOptionIdCanBeMapped",2],[329,"ext","codeunit",5332,"Lookup",4],[331,"ext","table",5331,"AssertRecordIDCanBeCoupled",2],[332,"call","CalcCRMName",0]]},{"name":"CalcCRMName","line":336,"kind":"procedure","access":"local","params":0,"steps":[[345,"call","FindCRMRecRefByPK",2],[347,"call","NameValue",1],[360,"ext","codeunit",5340,"LoadCRMOption",2],[361,"call","FindCRMRecRefByOptionId",2],[362,"ext","table",5334,"GetRecordRefOptionValue",1]]},{"name":"NameValue","line":387,"kind":"procedure","access":"local","params":1,"steps":[[391,"ext","codeunit",5334,"GetNameFieldNo",1]]}]}