{"title":"Table 5374 CRM Synch. Conflict Buffer, extension points 29","url":"https://jonas-paprotka.de/ref/table/5374-crm-synch-conflict-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":5374,"name":"CRM Synch. Conflict Buffer","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5374-crm-synch-conflict-buffer/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5374-crm-synch-conflict-buffer/source/","path":"src/Layers/W1/BaseApp/Integration/D365Sales/CRMSynchConflictBuffer.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:5331":{"name":"CRM Integration Record","url":"https://jonas-paprotka.de/ref/table/5331-crm-integration-record/"},"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/"},"table:5334":{"name":"CRM Option Mapping","url":"https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/"},"codeunit:5340":{"name":"CRM Integration Table Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/"},"table:5374":{"name":"CRM Synch. Conflict Buffer","url":"https://jonas-paprotka.de/ref/table/5374-crm-synch-conflict-buffer/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"codeunit:5331":{"name":"CRM Coupling Management","url":"https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/"},"codeunit:5336":{"name":"Integration Record Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/"}},"procs":[{"name":"Integration ID.OnValidate","line":28,"kind":"trigger","steps":[[36,"ext","table",5331,"FindRecordId",1],[38,"call","GetRecDescription",0]]},{"name":"CRM ID.OnValidate","line":48,"kind":"trigger","steps":[[59,"ext","table",5331,"FindByCRMID",1],[60,"ext","table",5331,"GetLatestError",1],[64,"ext","table",5331,"GetTableID",0],[67,"event","OnValidateCRMIDOnBeforeGetCRMIntegrationRecord",1],[70,"ext","codeunit",5334,"GetCRMTableNo",1],[71,"ext","table",5331,"GetCRMRecordRef",2],[72,"ext","codeunit",5334,"GetNameFieldNo",1]]},{"name":"Table ID.OnValidate","line":95,"kind":"trigger","steps":[[97,"call","GetTableCaption",0]]},{"name":"Record ID.OnValidate","line":111,"kind":"trigger","steps":[[122,"call","GetRecDescription",0]]},{"name":"CRM Option Id.OnValidate","line":188,"kind":"trigger","steps":[[196,"ext","table",5335,"FindMappingForTable",1],[197,"ext","table",5334,"FindRecordID",3],[198,"ext","table",5334,"GetLatestError",1],[203,"ext","codeunit",5340,"LoadCRMOption",2],[206,"ext","table",5334,"GetRecordRefOptionValue",1]]},{"name":"DeleteCoupledRecords","line":230,"kind":"procedure","params":0,"steps":[[237,"ext","table",5374,"DeleteCoupledRecord",0]]},{"name":"DeleteCoupledRecord","line":241,"kind":"procedure","params":0,"steps":[[243,"call","IsOneRecordDeleted",0],[245,"call","DeleteCoupledRecInNAV",0],[247,"call","DeleteCoupledRecInCRM",0]]},{"name":"DeleteCoupledRecInCRM","line":250,"kind":"procedure","access":"local","params":0,"steps":[[255,"ext","table",5331,"FindByCRMID",1],[256,"ext","table",5331,"GetCRMRecordRef",2],[257,"call","TryToDeleteCRMRecord",1],[259,"write",5331,"Delete",1],[260,"write",5374,"Delete"]]},{"name":"DeleteCoupledRecInNAV","line":264,"kind":"procedure","access":"local","params":0,"steps":[[269,"ext","table",5331,"FindByRecordID",1],[272,"write",5331,"Delete",1],[273,"write",5374,"Delete"]]},{"name":"DeleteCouplings","line":277,"kind":"procedure","params":0,"steps":[[306,"write",5334,"Delete"],[314,"call","UncoupleLocalRecords",2],[315,"call","UncoupleIntegrationRecords",3],[336,"ext","table",5331,"RemoveCouplingToCRMID",2],[340,"call","UncoupleLocalRecords",2],[341,"call","UncoupleIntegrationRecords",3],[342,"write",5374,"DeleteAll"]]},{"name":"UncoupleLocalRecords","line":345,"kind":"procedure","access":"local","params":2,"steps":[[353,"ext","codeunit",5330,"RemoveCoupling",2]]},{"name":"UncoupleIntegrationRecords","line":356,"kind":"procedure","access":"local","params":3,"steps":[[366,"ext","codeunit",5330,"RemoveCoupling",3]]},{"name":"DeleteCoupling","line":369,"kind":"procedure","params":0,"steps":[[379,"ext","table",5331,"FindRecordId",1],[380,"ext","codeunit",5331,"RemoveCouplingWithTracking",2],[382,"ext","codeunit",5331,"RemoveCouplingWithTracking",4],[384,"call","UpdateSourceTable",1]]},{"name":"Fill","line":395,"kind":"procedure","params":2,"steps":[[401,"write",5374,"DeleteAll"],[402,"ext","codeunit",5330,"RepairBrokenCouplings",1],[412,"call","InitFromCRMIntegrationRecord",1],[413,"call","DoesOneRecordExist",0],[414,"write",5374,"Insert"],[416,"write",5331,"Delete"],[423,"call","InitFromCRMOptionMapping",1],[424,"call","DoesOneRecordExist",0],[425,"write",5374,"Insert"],[427,"write",5334,"Delete"]]},{"name":"InitFromCRMIntegrationRecord","line":462,"kind":"procedure","params":1,"steps":[[466,"validate",5374,"Table ID"],[467,"validate",5374,"Integration ID"],[468,"validate",5374,"CRM ID"]]},{"name":"InitFromCRMOptionMapping","line":471,"kind":"procedure","params":1,"steps":[[475,"validate",5374,"Table ID"],[476,"validate",5374,"Record ID"],[477,"validate",5374,"CRM Option Id"]]},{"name":"RestoreDeletedRecords","line":495,"kind":"procedure","params":0,"steps":[[502,"call","CollectDeletedRecords",3],[503,"call","DeleteCouplings",3],[504,"ext","codeunit",5330,"CreateNewRecords",2]]},{"name":"CollectDeletedRecords","line":507,"kind":"procedure","access":"local","params":3,"steps":[[522,"ext","table",5374,"IsOneRecordDeleted",0],[526,"ext","table",5335,"FindMapping",2]]},{"name":"DeleteCouplings","line":550,"kind":"procedure","access":"local","params":3,"steps":[[552,"call","DeleteCouplingsForLocalRecords",2],[553,"call","DeleteCouplingsForCRMRecords",2]]},{"name":"DeleteCouplingsForLocalRecords","line":556,"kind":"procedure","access":"local","params":2,"steps":[[570,"ext","codeunit",5336,"GetIdFilterList",2],[574,"write",5331,"DeleteAll"],[577,"write",5374,"DeleteAll"]]},{"name":"DeleteCouplingsForCRMRecords","line":582,"kind":"procedure","access":"local","params":2,"steps":[[596,"ext","codeunit",5336,"GetIdFilterList",2],[600,"write",5331,"DeleteAll"],[603,"write",5374,"DeleteAll"]]},{"name":"UpdateSourceTable","line":646,"kind":"procedure","params":2,"steps":[[652,"write",5374,"Delete"],[660,"write",5374,"DeleteAll"],[668,"write",5374,"DeleteAll"]]}]}