{"title":"Codeunit 5330 CRM Integration Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-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":5330,"name":"CRM Integration Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/source/","path":"src/Layers/W1/BaseApp/Integration/Dataverse/CRMIntegrationManagement.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:5330":{"name":"CRM Connection Setup","url":"https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/"},"codeunit:7200":{"name":"CDS Integration Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/7200-cds-integration-mgt/"},"table:5368":{"name":"CRM NAV Connection","url":"https://jonas-paprotka.de/ref/table/5368-crm-nav-connection/"},"table:5331":{"name":"CRM Integration Record","url":"https://jonas-paprotka.de/ref/table/5331-crm-integration-record/"},"codeunit:5336":{"name":"Integration Record Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/"},"table:5334":{"name":"CRM Option Mapping","url":"https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/"},"codeunit:5345":{"name":"Integration Rec. Synch. Invoke","url":"https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/"},"table:5335":{"name":"Integration Table Mapping","url":"https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/"},"codeunit:5344":{"name":"CRM Product Name","url":"https://jonas-paprotka.de/ref/codeunit/5344-crm-product-name/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:7201":{"name":"CDS Integration Impl.","url":"https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/"},"codeunit:1990":{"name":"Guided Experience","url":"https://jonas-paprotka.de/ref/codeunit/1990-guided-experience/"},"codeunit:5334":{"name":"CRM Setup Defaults","url":"https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/"},"table:5336":{"name":"Integration Field Mapping","url":"https://jonas-paprotka.de/ref/table/5336-integration-field-mapping/"},"page:5363":{"name":"Match Based Coupling Criteria","url":"https://jonas-paprotka.de/ref/page/5363-match-based-coupling-criteria/"},"codeunit:5360":{"name":"CDS Int. Table Couple","url":"https://jonas-paprotka.de/ref/codeunit/5360-cds-int-table-couple/"},"codeunit:5357":{"name":"Int. Rec. Uncouple Invoke","url":"https://jonas-paprotka.de/ref/codeunit/5357-int-rec-uncouple-invoke/"},"codeunit:7204":{"name":"CDS Setup Defaults","url":"https://jonas-paprotka.de/ref/codeunit/7204-cds-setup-defaults/"},"codeunit:5350":{"name":"CRM Statistics Job","url":"https://jonas-paprotka.de/ref/codeunit/5350-crm-statistics-job/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"page:5050":{"name":"Contact Card","url":"https://jonas-paprotka.de/ref/page/5050-contact-card/"},"page:495":{"name":"Currency Card","url":"https://jonas-paprotka.de/ref/page/495-currency-card/"},"page:21":{"name":"Customer Card","url":"https://jonas-paprotka.de/ref/page/21-customer-card/"},"page:26":{"name":"Vendor Card","url":"https://jonas-paprotka.de/ref/page/26-vendor-card/"},"page:30":{"name":"Item Card","url":"https://jonas-paprotka.de/ref/page/30-item-card/"},"codeunit:700":{"name":"Page Management","url":"https://jonas-paprotka.de/ref/codeunit/700-page-management/"},"page:76":{"name":"Resource Card","url":"https://jonas-paprotka.de/ref/page/76-resource-card/"},"page:5116":{"name":"Salesperson/Purchaser Card","url":"https://jonas-paprotka.de/ref/page/5116-salesperson-purchaser-card/"},"page:209":{"name":"Units of Measure","url":"https://jonas-paprotka.de/ref/page/209-units-of-measure/"},"page:7":{"name":"Customer Price Groups","url":"https://jonas-paprotka.de/ref/page/7-customer-price-groups/"},"codeunit:5331":{"name":"CRM Coupling Management","url":"https://jonas-paprotka.de/ref/codeunit/5331-crm-coupling-management/"},"page:5342":{"name":"CRM Contact List","url":"https://jonas-paprotka.de/ref/page/5342-crm-contact-list/"},"page:5341":{"name":"CRM Account List","url":"https://jonas-paprotka.de/ref/page/5341-crm-account-list/"},"page:5343":{"name":"CRM Opportunity List","url":"https://jonas-paprotka.de/ref/page/5343-crm-opportunity-list/"},"page:5351":{"name":"CRM Sales Quote List","url":"https://jonas-paprotka.de/ref/page/5351-crm-sales-quote-list/"},"page:5349":{"name":"CRM Case List","url":"https://jonas-paprotka.de/ref/page/5349-crm-case-list/"},"codeunit:5335":{"name":"Integration Table Synch.","url":"https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/"},"table:1400":{"name":"Service Connection","url":"https://jonas-paprotka.de/ref/table/1400-service-connection/"},"codeunit:1291":{"name":"DotNet Exception Handler","url":"https://jonas-paprotka.de/ref/codeunit/1291-dotnet-exception-handler/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"table:5338":{"name":"Integration Synch. Job","url":"https://jonas-paprotka.de/ref/table/5338-integration-synch-job/"},"page:5333":{"name":"CRM Skipped Records","url":"https://jonas-paprotka.de/ref/page/5333-crm-skipped-records/"},"table:5332":{"name":"Coupling Record Buffer","url":"https://jonas-paprotka.de/ref/table/5332-coupling-record-buffer/"},"table:9160":{"name":"TempStack","url":"https://jonas-paprotka.de/ref/table/9160-tempstack/"},"table:5328":{"name":"CRM Synch Status","url":"https://jonas-paprotka.de/ref/table/5328-crm-synch-status/"},"codeunit:9900":{"name":"Data Upgrade Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9900-data-upgrade-mgt/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:5373":{"name":"CRM Full Synch. Review Line","url":"https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/"},"table:5400":{"name":"Unit Group","url":"https://jonas-paprotka.de/ref/table/5400-unit-group/"},"codeunit:2504":{"name":"Extension Management","url":"https://jonas-paprotka.de/ref/codeunit/2504-extension-management/"}},"procs":[{"name":"OnRun","line":47,"kind":"trigger","steps":[[49,"call","CheckOrEnableCRMConnection",0]]},{"name":"IsCRMIntegrationEnabled","line":172,"kind":"procedure","params":0,"steps":[[184,"ext","table",5330,"RestoreConnection",0],[187,"ext","table",5330,"RegisterConnection",0],[189,"event","OnAfterCRMIntegrationEnabled",0]]},{"name":"IsCDSIntegrationEnabled","line":197,"kind":"procedure","params":0,"steps":[[203,"event","OnIsCDSIntegrationEnabled",0],[205,"event","OnInitCDSConnection",0]]},{"name":"IsCRMSolutionInstalled","line":270,"kind":"procedure","params":0,"steps":[[272,"call","TryTouchCRMSolutionEntities",0]]},{"name":"CheckSolutionVersionOutdated","line":281,"kind":"procedure","params":0,"steps":[[288,"ext","codeunit",7200,"GetSolutionVersion",2]]},{"name":"SetCRMNAVConnectionUrl","line":308,"kind":"procedure","params":1,"steps":[[327,"write",5368,"Insert"],[329,"write",5368,"Modify"]]},{"name":"RemoveCRMNAVConnectionUrl","line":332,"kind":"procedure","access":"internal","params":1,"steps":[[338,"call","TryRemoveCRMNAVConnectionUrl",2]]},{"name":"TryRemoveCRMNAVConnectionUrl","line":342,"kind":"procedure","access":"local","params":2,"steps":[[350,"ext","table",5330,"RegisterConnection",0],[359,"write",5368,"Delete"]]},{"name":"UpdateMultipleNow","line":368,"kind":"procedure","params":2,"steps":[[373,"call","GetRecordRef",2],[378,"call","UpdateCRMIntRecords",2],[381,"call","UpdateOptions",2],[383,"call","UpdateRecords",2]]},{"name":"UpdateCRMIntRecords","line":386,"kind":"procedure","access":"local","params":2,"steps":[[413,"ext","table",5331,"FindRecordId",1],[414,"call","GetIntegrationTableMapping",2],[417,"call","GetSelectedSingleSyncDirection",4],[420,"call","GetSelectedMultipleSyncDirection",1],[427,"ext","table",5331,"FindRecordId",1],[430,"call","GetIntegrationTableMapping",2],[451,"call","GetTableCaption",1],[453,"call","SendNotification",1],[455,"call","SendNotification",1],[471,"call","EnqueueSyncJob",5],[472,"ext","codeunit",5336,"GetIdFilterList",2],[476,"write",5331,"ModifyAll"],[484,"call","SendSyncNotification",1]]},{"name":"UpdateRecords","line":487,"kind":"procedure","access":"local","params":2,"steps":[[499,"call","GetIntegrationTableMapping",2],[502,"call","GetCoupledCRMID",2],[504,"call","GetSelectedSingleSyncDirection",4],[506,"call","DefineCouplingIfNotCoupled",2],[510,"call","GetSelectedMultipleSyncDirection",1],[517,"call","GetCoupledCRMID",2],[519,"call","WasRecordModifiedAfterLastSynch",4],[522,"call","IsRecordSkipped",1],[535,"call","SendNotification",1],[535,"call","GetTableCaption",1],[537,"call","SendNotification",1],[537,"call","GetTableCaption",1],[541,"call","EnqueueSyncJob",5],[546,"call","SendSyncNotification",1]]},{"name":"UpdateOptions","line":549,"kind":"procedure","access":"local","params":2,"steps":[[558,"call","GetIntegrationTableMapping",2],[561,"call","GetMappedCRMOptionId",2],[562,"call","DefineOptionMappingIfNotMapped",2],[566,"call","GetSelectedMultipleSyncDirection",1],[572,"call","GetMappedCRMOptionId",2],[579,"call","EnqueueOptionSyncJobFromIntegrationTable",4],[594,"call","EnqueueOptionSyncJobToIntegrationTable",4],[600,"call","SendSyncNotification",1]]},{"name":"UpdateOneNow","line":603,"kind":"procedure","params":1,"steps":[[606,"call","UpdateMultipleNow",1]]},{"name":"UpdateSkippedNow","line":626,"kind":"procedure","params":3,"steps":[[635,"ext","table",5331,"FindRecordId",1],[636,"validate",5331,"Skipped"],[637,"write",5331,"Modify"],[647,"write",5334,"Modify"],[653,"call","SendRestoredSyncNotification",1]]},{"name":"UpdateAllSkippedNow","line":656,"kind":"procedure","params":0,"steps":[[666,"write",5331,"ModifyAll"],[668,"write",5334,"ModifyAll"],[669,"call","SendRestoredSyncNotification",1]]},{"name":"WasRecordModifiedAfterLastSynch","line":672,"kind":"procedure","access":"local","params":4,"steps":[[679,"ext","codeunit",5345,"WasModifiedAfterLastSynch",2],[680,"ext","table",5335,"GetRecordRef",2],[681,"ext","codeunit",5345,"WasModifiedAfterLastSynch",2]]},{"name":"CheckOrEnableCRMConnection","line":687,"kind":"procedure","params":0,"steps":[[695,"call","IsCDSIntegrationEnabled",0],[698,"call","IsCRMIntegrationEnabled",0],[706,"ext","codeunit",5344,"SHORT",0],[706,"ext","codeunit",5344,"CDSServiceName",0],[708,"ext","codeunit",8703,"LogUptake",3],[709,"ext","codeunit",8703,"LogUptake",3],[710,"ext","codeunit",5344,"CDSServiceName",0],[711,"ext","codeunit",7201,"RegisterAssistedSetup",0],[712,"run","codeunit",1990],[713,"call","IsCDSIntegrationEnabled",0]]},{"name":"CreateNewRecordsInCRM","line":739,"kind":"procedure","params":1,"steps":[[747,"call","GetRecordRef",2],[750,"call","GetIntegrationTableMappingFromCRMRecord",2]]},{"name":"CreateNewOptionsInCRM","line":761,"kind":"procedure","params":1,"steps":[[769,"call","GetRecordRef",2],[772,"call","GetIntegrationTableMapping",2],[782,"call","EnqueueOptionSyncJobToIntegrationTable",4],[787,"call","SendCreateNewNotification",1]]},{"name":"CreateNewOptionsInCRM","line":790,"kind":"procedure","params":1,"steps":[[819,"call","EnqueueOptionSyncJobToIntegrationTable",4],[824,"call","SendCreateNewNotification",1]]},{"name":"CreateNewRecordsInCRM","line":828,"kind":"procedure","params":1,"steps":[[832,"call","CreateNewRecords",2]]},{"name":"CreateNewRecordsFromSelectedCRMOptions","line":836,"kind":"procedure","params":1,"steps":[[845,"call","GetRecordRef",2],[848,"call","GetIntegrationTableMappingFromCRMOption",2],[851,"call","GetOptionIdFieldRef",1],[852,"ext","table",5334,"FindRecordID",3],[858,"call","EnqueueOptionSyncJobFromIntegrationTable",4],[863,"call","SendCreateNewNotification",1]]},{"name":"EnqueueOptionSyncJobFromIntegrationTable","line":866,"kind":"procedure","params":4,"steps":[[872,"ext","table",5335,"SetIntegrationTableFilter",1],[872,"call","GetTableViewForCRMOptionIds",3],[873,"call","AddIntegrationTableMapping",2],[875,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"EnqueueOptionSyncJobToIntegrationTable","line":879,"kind":"procedure","params":4,"steps":[[886,"ext","table",5335,"SetTableFilter",1],[886,"ext","codeunit",5336,"GetTableViewForSystemIds",2],[887,"call","AddIntegrationTableMapping",2],[889,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"EnqueueOptionSyncJob","line":893,"kind":"procedure","access":"local","params":4,"steps":[[899,"ext","table",5335,"SetIntegrationTableFilter",1],[899,"call","GetTableViewForCRMOptionId",3],[900,"ext","table",5335,"SetTableFilter",1],[900,"ext","codeunit",5336,"GetTableViewForRecordID",1],[901,"call","AddIntegrationTableMapping",1],[903,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"CreateNewRecordsFromCRM","line":906,"kind":"procedure","params":1,"steps":[[914,"call","GetRecordRef",2],[917,"call","GetIntegrationTableMappingFromCRMRecord",2]]},{"name":"CreateNewRecordsFromCRM","line":929,"kind":"procedure","params":1,"steps":[[933,"call","CreateNewRecords",2]]},{"name":"CreateNewRecords","line":937,"kind":"procedure","params":2,"steps":[[981,"ext","table",5331,"GetCRMRecordRef",2],[986,"write",5331,"Delete"],[1001,"ext","table",5331,"FindValidByCRMID",1],[1006,"write",5331,"Delete"],[1010,"call","EnqueueCreateNewJob",4],[1012,"call","SendCreateNewNotification",1]]},{"name":"EnqueueCreateNewJob","line":1015,"kind":"procedure","access":"local","params":4,"steps":[[1031,"call","EnqueueSyncJob",5]]},{"name":"SendCreateNewNotification","line":1038,"kind":"procedure","access":"local","params":1,"steps":[[1042,"call","SendNotification",1],[1044,"call","SendNotification",1],[1048,"call","SendSyncNotification",1]]},{"name":"CreateNewRecordsFromSelectedCRMRecords","line":1052,"kind":"procedure","params":1,"steps":[[1054,"call","CreateNewRecordsFromCRM",1]]},{"name":"PerformInitialSynchronization","line":1057,"kind":"procedure","access":"local","params":3,"steps":[[1063,"call","GetIntegrationTableMapping",2],[1064,"call","EnqueueSyncJob",4],[1069,"call","SendSyncNotification",1]]},{"name":"PerformInitialOptionSynchronization","line":1072,"kind":"procedure","access":"local","params":3,"steps":[[1078,"call","GetIntegrationTableMapping",2],[1079,"call","EnqueueOptionSyncJob",4],[1084,"call","SendSyncNotification",1]]},{"name":"MarkLocalDeletedAsSkipped","line":1087,"kind":"procedure","access":"internal","params":0,"steps":[[1106,"ext","table",5335,"GetTableFilter",0],[1117,"write",5331,"Modify"],[1125,"call","GetTableCaption",1],[1125,"call","GetTableCaption",1]]},{"name":"RepairBrokenCouplings","line":1139,"kind":"procedure","params":1,"steps":[[1151,"ext","table",5331,"RepairTableIdByLocalRecord",0],[1153,"ext","table",5331,"RepairTableIdByCRMRecord",0],[1154,"write",5331,"Delete"]]},{"name":"RemoveCoupling","line":1160,"kind":"procedure","params":2,"steps":[[1165,"call","GetIntegrationTableMappingForUncoupling",3],[1166,"call","ScheduleUncoupling",3],[1168,"call","RepairBrokenCouplings",0],[1170,"write",5331,"DeleteAll"]]},{"name":"MatchBasedCoupling","line":1179,"kind":"procedure","params":4,"steps":[[1185,"call","IsCRMTable",1],[1186,"call","GetTableCaption",1],[1190,"call","GetIntegrationTableMappingForCoupling",2],[1195,"ext","table",5336,"SetMatchBasedCouplingFilters",1],[1196,"run","page",5363],[1203,"call","PerformCoupling",3],[1205,"call","ScheduleCoupling",3]]},{"name":"RemoveCoupling","line":1228,"kind":"procedure","params":3,"steps":[[1236,"ext","codeunit",5336,"JoinIDs",2]]},{"name":"RemoveCoupling","line":1247,"kind":"procedure","access":"internal","params":2,"steps":[[1252,"call","IsCRMTable",1],[1253,"call","GetTableCaption",1],[1257,"event","OnRemoveCouplingOnBeforeGetIntegrationTableMappingForUncoupling",0],[1258,"call","GetIntegrationTableMappingForUncoupling",2],[1260,"call","ScheduleUncoupling",3],[1260,"ext","codeunit",5336,"GetTableViewForLocalRecords",1],[1262,"call","PerformUncoupling",3],[1262,"ext","codeunit",5336,"GetTableViewForLocalRecords",1],[1264,"call","RemoveCouplingToRecord",1]]},{"name":"RemoveOptionMapping","line":1267,"kind":"procedure","params":1,"steps":[[1277,"write",5334,"Delete"]]},{"name":"RemoveOptionMapping","line":1281,"kind":"procedure","access":"local","params":3,"steps":[[1289,"write",5334,"Delete"]]},{"name":"RemoveOptionMappingFromRecRef","line":1292,"kind":"procedure","access":"local","params":1,"steps":[[1299,"write",5334,"Delete"]]},{"name":"CreateOptionMapping","line":1302,"kind":"procedure","params":3,"steps":[[1308,"ext","table",5334,"AssertCRMOptionIdCanBeMapped",2],[1309,"ext","table",5334,"InsertRecord",3],[1312,"ext","table",5334,"AssertCRMOptionIdCanBeMapped",2],[1315,"write",5334,"Modify",1]]},{"name":"MatchBasedCoupling","line":1332,"kind":"procedure","access":"local","params":2,"steps":[[1339,"call","IsCRMTable",1],[1340,"call","GetTableCaption",1],[1344,"event","OnMatchBasedCouplingOnBeforeGetIntegrationTableMappingForMatchBasedCoupling",0],[1345,"call","GetIntegrationTableMappingForCoupling",2],[1346,"ext","table",5336,"SetMatchBasedCouplingFilters",1],[1347,"run","page",5363],[1349,"call","FindCoupledToCRMField",2],[1352,"call","ScheduleCoupling",3],[1352,"ext","codeunit",5336,"GetTableViewForLocalRecords",1],[1354,"call","PerformCoupling",3],[1354,"ext","codeunit",5336,"GetTableViewForLocalRecords",1]]},{"name":"RemoveCoupling","line":1359,"kind":"procedure","access":"internal","params":4,"steps":[[1365,"call","GetIntegrationTableMappingForUncoupling",2],[1367,"call","ScheduleUncoupling",3],[1367,"call","GetTableViewForCRMIDs",3],[1369,"call","PerformUncoupling",3],[1369,"call","GetTableViewForCRMIDs",3],[1371,"call","RemoveCouplingToRecord",2]]},{"name":"RemoveCouplingToRecord","line":1374,"kind":"procedure","access":"local","params":1,"steps":[[1380,"ext","table",5331,"RemoveCouplingToRecord",1]]},{"name":"RemoveCouplingToRecord","line":1384,"kind":"procedure","access":"local","params":2,"steps":[[1390,"ext","table",5331,"RemoveCouplingToCRMID",2]]},{"name":"RemoveCoupling","line":1398,"kind":"procedure","access":"internal","params":2,"steps":[[1404,"call","IsCRMTable",1],[1405,"call","GetTableCaption",1],[1409,"call","GetIntegrationTableMappingForUncoupling",2],[1410,"ext","table",5331,"RemoveCouplingToRecord",1],[1413,"call","ScheduleUncoupling",3],[1413,"ext","codeunit",5336,"GetTableViewForRecordID",1],[1415,"call","PerformUncoupling",3],[1415,"ext","codeunit",5336,"GetTableViewForRecordID",1]]},{"name":"RemoveCoupling","line":1423,"kind":"procedure","access":"internal","params":4,"steps":[[1428,"call","GetIntegrationTableMappingForUncoupling",3],[1429,"ext","table",5331,"RemoveCouplingToCRMID",2],[1432,"call","ScheduleUncoupling",3],[1432,"call","GetTableViewForGuid",3],[1434,"call","PerformUncoupling",3],[1434,"call","GetTableViewForGuid",3]]},{"name":"ScheduleUncoupling","line":1437,"kind":"procedure","access":"local","params":3,"steps":[[1443,"call","EnqueueUncoupleJob",3],[1448,"call","SendUncoupleNotification",1]]},{"name":"ScheduleCoupling","line":1452,"kind":"procedure","access":"local","params":3,"steps":[[1459,"call","EnqueueCouplingJob",3],[1464,"call","SendCouplingNotification",1]]},{"name":"PerformCoupling","line":1468,"kind":"procedure","access":"local","params":3,"steps":[[1474,"ext","table",5335,"SetTableFilter",1],[1479,"call","AddIntegrationTableMapping",2],[1480,"ext","codeunit",5360,"PerformScheduledCoupling",1],[1481,"write",5335,"Delete",1]]},{"name":"PerformUncoupling","line":1484,"kind":"procedure","access":"local","params":3,"steps":[[1490,"call","AddIntegrationTableMapping",1],[1491,"ext","table",5335,"SetTableFilter",1],[1492,"ext","table",5335,"SetIntegrationTableFilter",1],[1510,"write",5335,"Delete",1]]},{"name":"PerformUncoupling","line":1514,"kind":"procedure","access":"local","params":3,"steps":[[1523,"ext","codeunit",5357,"SetContext",8],[1524,"run","codeunit",5357],[1525,"ext","codeunit",5357,"GetContext",6]]},{"name":"GetIntegrationTableMapping","line":1557,"kind":"procedure","params":2,"steps":[[1562,"event","OnBeforeGetIntegrationTableMappingWithRecordId",0]]},{"name":"GetIntegrationTableMapping","line":1566,"kind":"procedure","params":2,"steps":[[1568,"event","OnBeforeGetIntegrationTableMapping",0],[1572,"call","IsCRMTable",1],[1577,"call","GetTableCaption",1]]},{"name":"GetIntegrationTableMappingFromCRMRecord","line":1580,"kind":"procedure","access":"local","params":2,"steps":[[1586,"event","OnBeforeGetIntegrationTableMappingFromCRMRecord",0],[1588,"call","GetIntegrationTableMapping",2],[1604,"event","OnAfterGetIntegrationTableMappingFromCRMRecordBeforeFindRecord",0],[1606,"call","GetTableCaption",1]]},{"name":"GetIntegrationTableMappingFromCRMOption","line":1609,"kind":"procedure","access":"local","params":2,"steps":[[1626,"event","OnGetTableIdFromCRMOption",0],[1630,"call","GetTableCaption",1]]},{"name":"IsCRMTable","line":1642,"kind":"procedure","params":1,"steps":[[1648,"event","OnIsCRMTable",0]]},{"name":"IsRecordSkipped","line":1659,"kind":"procedure","access":"local","params":1,"steps":[[1663,"ext","table",5331,"FindByRecordID",1]]},{"name":"EnqueueFullSyncJob","line":1678,"kind":"procedure","params":1,"steps":[[1687,"call","AddIntegrationTableMapping",1],[1689,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"EnqueueSyncJob","line":1696,"kind":"procedure","params":4,"steps":[[1703,"ext","table",5335,"SetIntegrationTableFilter",1],[1703,"call","GetTableViewForGuid",3],[1705,"ext","table",5335,"SetTableFilter",1],[1705,"ext","codeunit",5336,"GetTableViewForRecordIDAndFlowFilters",2],[1706,"call","AddIntegrationTableMapping",1],[1708,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"EnqueueSyncJob","line":1711,"kind":"procedure","params":5,"steps":[[1718,"ext","table",5335,"SetIntegrationTableFilter",1],[1718,"call","GetTableViewForCRMIDs",3],[1720,"ext","table",5335,"SetTableFilter",1],[1720,"ext","codeunit",5336,"GetTableViewForSystemIds",2],[1721,"call","AddIntegrationTableMapping",2],[1723,"ext","codeunit",5334,"CreateJobQueueEntry",1]]},{"name":"EnqueueUncoupleJob","line":1726,"kind":"procedure","access":"local","params":3,"steps":[[1730,"ext","table",5335,"SetTableFilter",1],[1731,"ext","table",5335,"SetIntegrationTableFilter",1],[1732,"call","AddIntegrationTableMapping",1],[1734,"ext","codeunit",7204,"CreateUncoupleJobQueueEntry",1]]},{"name":"EnqueueCouplingJob","line":1737,"kind":"procedure","access":"local","params":3,"steps":[[1742,"ext","table",5335,"SetTableFilter",1],[1747,"call","AddIntegrationTableMapping",2],[1750,"ext","codeunit",7204,"CreateCoupleJobQueueEntry",1]]},{"name":"AddIntegrationTableMapping","line":1758,"kind":"procedure","params":2,"steps":[[1763,"ext","table",5335,"GetName",0],[1774,"write",5335,"Insert"],[1776,"call","CloneIntegrationFieldMapping",2]]},{"name":"CloneIntegrationFieldMapping","line":1779,"kind":"procedure","params":2,"steps":[[1790,"write",5336,"Insert"]]},{"name":"GetTableViewForCRMIDs","line":1806,"kind":"procedure","access":"local","params":3,"steps":[[1813,"ext","codeunit",5336,"JoinIDs",2]]},{"name":"GetTableViewForCRMOptionIds","line":1821,"kind":"procedure","access":"local","params":3,"steps":[[1827,"call","JoinIntegers",2]]},{"name":"CreateOrUpdateCRMAccountStatistics","line":1847,"kind":"procedure","params":1,"steps":[[1853,"call","GetCoupledCRMID",2],[1857,"ext","codeunit",5350,"CreateOrUpdateCRMAccountStatistics",2],[1858,"ext","codeunit",5350,"UpdateStatusOfPaidInvoices",1],[1859,"ext","codeunit",5344,"CDSServiceName",0]]},{"name":"ShowCRMEntityFromRecordID","line":1862,"kind":"procedure","params":1,"steps":[[1866,"call","DefineCouplingIfNotCoupled",2],[1869,"call","GetCRMEntityUrlFromRecordID",1]]},{"name":"GetCRMEntityUrlFromRecordID","line":1872,"kind":"procedure","params":1,"steps":[[1879,"ext","table",5331,"FindIDFromRecordID",2],[1880,"ext","codeunit",5344,"CDSServiceName",0],[1881,"ext","codeunit",5330,"GetIntegrationTableMapping",2],[1883,"call","GetCRMEntityUrlFromCRMID",3]]},{"name":"GetCRMEntityUrlFromCRMID","line":1886,"kind":"procedure","params":2,"steps":[[1890,"call","IsCRMTable",1]]},{"name":"GetCRMEntityUrlFromCRMID","line":1897,"kind":"procedure","params":3,"steps":[[1904,"event","OnGetCDSServerAddress",0],[1906,"call","GetCRMEntityTypeName",2],[1909,"call","GetCRMEntityTypeName",2],[1914,"event","OnAfterGetCRMEntityUrlFromCRMID",0]]},{"name":"OpenCoupledNavRecordPage","line":1918,"kind":"procedure","params":2,"steps":[[1928,"event","OnBeforeOpenCoupledNavRecordPage",1],[1933,"ext","codeunit",5334,"GetTableIDCRMEntityNameMapping",1],[1940,"call","FindRecordFromNameValueBuffer",5],[1942,"call","GetIntegrationTableMappingFromCRMID",3],[1945,"call","SynchFromIntegrationTable",2],[1950,"call","FindRecordFromNameValueBuffer",5],[1953,"call","OpenRecordCardPage",1]]},{"name":"FindRecordFromNameValueBuffer","line":1957,"kind":"procedure","access":"local","params":5,"steps":[[1967,"call","IsCRMTable",1],[1969,"ext","table",5331,"FindRecordIDFromID",3]]},{"name":"SynchFromIntegrationTable","line":1974,"kind":"procedure","access":"local","params":2,"steps":[[1981,"ext","table",5335,"GetIntegrationTableFilter",0],[1987,"ext","table",5335,"SetIntegrationTableFilter",1],[1989,"call","AddIntegrationTableMapping",1],[1992,"write",5335,"Delete",1]]},{"name":"OpenRecordCardPage","line":1996,"kind":"procedure","access":"local","params":1,"steps":[[2013,"event","OnBeforeOpenRecordCardPage",1],[2022,"run","page",5050],[2027,"run","page",495],[2032,"run","page",21],[2037,"run","page",26],[2042,"run","page",30],[2047,"ext","codeunit",700,"PageRun",1],[2052,"run","page",76],[2057,"run","page",5116],[2063,"run","page",209],[2069,"run","page",7]]},{"name":"GetCRMEntityTypeName","line":2076,"kind":"procedure","params":1,"steps":[[2080,"call","IsCRMTable",1]]},{"name":"GetCRMEntityTypeName","line":2087,"kind":"procedure","params":2,"steps":[[2092,"ext","codeunit",5334,"GetTableIDCRMEntityNameMapping",1],[2103,"ext","codeunit",5344,"CDSServiceName",0]]},{"name":"GetCoupledCRMID","line":2106,"kind":"procedure","access":"local","params":2,"steps":[[2110,"ext","table",5331,"FindIDFromRecordID",2]]},{"name":"DefineCouplingIfNotCoupled","line":2113,"kind":"procedure","access":"local","params":2,"steps":[[2117,"call","GetCoupledCRMID",2],[2121,"ext","codeunit",5344,"CDSServiceName",0],[2122,"call","DefineCoupling",1],[2123,"call","GetCoupledCRMID",2]]},{"name":"DefineCoupling","line":2127,"kind":"procedure","params":1,"steps":[[2135,"ext","codeunit",5331,"DefineCoupling",5],[2137,"call","CreateNewRecordsInCRM",1],[2140,"call","PerformInitialSynchronization",3]]},{"name":"DefineOptionMappingIfNotMapped","line":2147,"kind":"procedure","access":"local","params":2,"steps":[[2152,"ext","codeunit",5344,"CDSServiceName",0],[2153,"call","DefineOptionMapping",1],[2154,"call","GetMappedCRMOptionId",2]]},{"name":"DefineOptionMapping","line":2158,"kind":"procedure","params":1,"steps":[[2166,"ext","codeunit",5331,"DefineOptionMapping",5],[2168,"call","CreateNewOptionsInCRM",1],[2171,"call","PerformInitialOptionSynchronization",3]]},{"name":"ManageCreateNewRecordFromCRM","line":2178,"kind":"procedure","params":1,"steps":[[2183,"call","CreateNewContactFromCRM",0],[2185,"call","CreateNewCustomerFromCRM",0]]},{"name":"CreateNewContactFromCRM","line":2189,"kind":"procedure","params":0,"steps":[[2193,"call","GetIntegrationTableMapping",2],[2194,"run","page",5342]]},{"name":"CreateNewCustomerFromCRM","line":2197,"kind":"procedure","params":0,"steps":[[2201,"call","GetIntegrationTableMapping",2],[2202,"run","page",5341]]},{"name":"CreateNewVendorFromCRM","line":2205,"kind":"procedure","params":0,"steps":[[2209,"call","GetIntegrationTableMapping",2],[2210,"run","page",5341]]},{"name":"ShowCustomerCRMOpportunities","line":2214,"kind":"procedure","params":1,"steps":[[2219,"call","IsCRMIntegrationEnabled",0],[2222,"call","DefineCouplingIfNotCoupled",2],[2229,"run","page",5343]]},{"name":"ShowCustomerCRMQuotes","line":2233,"kind":"procedure","params":1,"steps":[[2238,"call","IsCRMIntegrationEnabled",0],[2241,"call","DefineCouplingIfNotCoupled",2],[2248,"run","page",5351]]},{"name":"ShowCustomerCRMCases","line":2252,"kind":"procedure","params":1,"steps":[[2257,"call","IsCRMIntegrationEnabled",0],[2260,"call","DefineCouplingIfNotCoupled",2],[2267,"run","page",5349]]},{"name":"ResetIntTableMappingDefaultConfiguration","line":2271,"kind":"procedure","params":1,"steps":[[2282,"run","codeunit",5330],[2285,"ext","table",5330,"DoReadCRMData",0],[2285,"ext","table",5330,"IsEnabled",0],[2287,"ext","codeunit",7200,"IsTeamOwnershipModelSelected",0],[2293,"ext","codeunit",7204,"ResetSalesPeopleSystemUserMapping",3],[2295,"ext","codeunit",7204,"ResetCustomerAccountMapping",3],[2297,"ext","codeunit",7204,"ResetVendorAccountMapping",3],[2299,"ext","codeunit",7204,"ResetContactContactMapping",3],[2301,"ext","codeunit",7204,"ResetCurrencyTransactionCurrencyMapping",2],[2303,"ext","codeunit",7204,"ResetPaymentTermsMapping",1],[2305,"ext","codeunit",7204,"ResetShipmentMethodMapping",1],[2307,"ext","codeunit",7204,"ResetShippingAgentMapping",1],[2309,"ext","codeunit",5334,"ResetUnitOfMeasureUoMScheduleMapping",2],[2311,"ext","codeunit",5334,"ResetUnitGroupUoMScheduleMapping",2],[2313,"ext","codeunit",5334,"ResetItemUnitOfMeasureUoMMapping",2],[2315,"ext","codeunit",5334,"ResetResourceUnitOfMeasureUoMMapping",2],[2317,"ext","codeunit",5334,"ResetItemProductMapping",2],[2320,"ext","codeunit",5334,"ResetResourceProductMapping",2],[2322,"ext","codeunit",5334,"ResetCustomerPriceGroupPricelevelMapping",2],[2324,"ext","codeunit",5334,"ResetSalesInvoiceHeaderInvoiceMapping",3],[2326,"ext","codeunit",5334,"ResetSalesInvoiceLineInvoiceMapping",1],[2328,"ext","codeunit",5334,"ResetOpportunityMapping",2],[2330,"ext","table",5330,"IsBidirectionalSalesOrderIntEnabled",0],[2331,"ext","codeunit",5334,"ResetBidirectionalSalesOrderMapping",3],[2332,"ext","codeunit",5334,"RecreateSalesOrderNotesJobQueueEntry",1],[2333,"ext","codeunit",5334,"RecreateArchivedSalesOrdersJobQueueEntry",1],[2335,"ext","codeunit",5334,"ResetSalesOrderMapping",3],[2336,"ext","codeunit",5334,"RecreateSalesOrderStatusJobQueueEntry",1],[2337,"ext","codeunit",5334,"RecreateSalesOrderNotesJobQueueEntry",1],[2340,"ext","codeunit",5334,"ResetBidirectionalSalesOrderLineMapping",1],[2342,"event","OnBeforeHandleCustomIntegrationTableMapping",1],[2346,"ext","codeunit",7204,"SetCustomIntegrationsTableMappings",1],[2348,"ext","codeunit",5334,"SetCustomIntegrationsTableMappings",1],[2354,"call","AddExtraFieldMappings",1]]},{"name":"AddExtraFieldMappings","line":2358,"kind":"procedure","access":"internal","params":1,"steps":[[2377,"call","AddFieldMapping",5],[2378,"call","AddFieldMapping",5],[2385,"call","AddFieldMapping",5],[2386,"call","AddFieldMapping",5],[2393,"call","AddFieldMapping",5],[2400,"call","AddFieldMapping",5],[2401,"call","AddFieldMapping",5],[2408,"call","AddFieldMapping",5],[2409,"call","AddFieldMapping",5],[2410,"call","AddFieldMapping",5],[2413,"event","OnAfterAddExtraFieldMappings",0]]},{"name":"AddFieldMapping","line":2416,"kind":"procedure","access":"local","params":5,"steps":[[2430,"ext","table",5336,"CreateRecord",10]]},{"name":"GetNoOfCRMOpportunities","line":2433,"kind":"procedure","params":1,"steps":[[2438,"call","IsCRMIntegrationEnabled",0],[2441,"call","GetCoupledCRMID",2]]},{"name":"GetNoOfCRMQuotes","line":2449,"kind":"procedure","params":1,"steps":[[2454,"call","IsCRMIntegrationEnabled",0],[2457,"call","GetCoupledCRMID",2]]},{"name":"GetNoOfCRMCases","line":2465,"kind":"procedure","params":1,"steps":[[2470,"call","IsCRMIntegrationEnabled",0],[2473,"call","GetCoupledCRMID",2]]},{"name":"GetSelectedMultipleSyncDirection","line":2481,"kind":"procedure","access":"local","params":1,"steps":[[2500,"ext","codeunit",5344,"CDSServiceName",0],[2502,"ext","codeunit",5344,"CDSServiceName",0],[2506,"event","OnBeforeSynchronyzeNowQuestion",1]]},{"name":"GetSelectedSingleSyncDirection","line":2515,"kind":"procedure","access":"local","params":4,"steps":[[2535,"ext","table",5335,"GetRecordRef",2],[2536,"ext","codeunit",5345,"WasModifiedAfterLastSynch",2],[2537,"ext","codeunit",5345,"WasModifiedAfterLastSynch",2],[2545,"ext","codeunit",5335,"CheckTransferFields",5],[2547,"ext","codeunit",5344,"CDSServiceName",0],[2550,"ext","codeunit",5335,"CheckTransferFields",5],[2552,"ext","codeunit",5344,"CDSServiceName",0],[2557,"ext","codeunit",5335,"CheckTransferFields",5],[2560,"ext","codeunit",5344,"CDSServiceName",0],[2566,"ext","codeunit",5335,"CheckTransferFields",5],[2569,"ext","codeunit",5344,"CDSServiceName",0],[2605,"ext","codeunit",5344,"CDSServiceName",0],[2607,"ext","codeunit",5344,"CDSServiceName",0],[2612,"ext","codeunit",5344,"CDSServiceName",0],[2614,"ext","codeunit",5344,"CDSServiceName",0]]},{"name":"DeleteIntegrationRecordByBCID","line":2625,"kind":"procedure","access":"local","params":1,"steps":[[2629,"ext","table",5331,"FindByRecordID",1],[2630,"write",5331,"Delete"]]},{"name":"DeleteIntegrationRecordByCRMID","line":2635,"kind":"procedure","access":"local","params":2,"steps":[[2641,"ext","table",5331,"FindByCRMID",1],[2642,"write",5331,"Delete"]]},{"name":"HandleOnUpdateConflictDetected","line":2648,"kind":"procedure","access":"local","params":5,"steps":[[2653,"call","IsCDSIntegrationEnabled",0],[2653,"call","IsCRMIntegrationEnabled",0]]},{"name":"HandleOnDeletionConflictDetected","line":2683,"kind":"procedure","access":"local","params":3,"steps":[[2691,"call","IsCDSIntegrationEnabled",0],[2691,"call","IsCRMIntegrationEnabled",0],[2698,"call","RemoveCoupling",2],[2701,"call","RemoveCoupling",4],[2705,"ext","table",5330,"IsBidirectionalSalesOrderIntEnabled",0],[2714,"call","DeleteIntegrationRecordByBCID",1],[2716,"call","DeleteIntegrationRecordByCRMID",2]]},{"name":"HandleCRMRegisterServiceConnection","line":2725,"kind":"procedure","params":1,"steps":[[2736,"write",5330,"Insert"],[2744,"ext","table",5330,"TestConnection",0],[2748,"ext","table",1400,"InsertServiceConnectionExtended",6]]},{"name":"HandleOnGetIntegrationSolutions","line":2754,"kind":"procedure","access":"local","params":1,"steps":[[2760,"ext","codeunit",5344,"UNIQUE",0]]},{"name":"HandleOnGetIntegrationRequiredRoles","line":2764,"kind":"procedure","access":"local","params":1,"steps":[[2770,"call","GetIntegrationAdminRoleID",0],[2771,"call","GetIntegrationUserRoleID",0]]},{"name":"ImportCRMSolution","line":2798,"kind":"procedure","params":9,"steps":[[2817,"call","CheckConnectRequiredFields",2],[2821,"ext","codeunit",7201,"GetAuthenticationTypeToken",1],[2827,"ext","codeunit",7201,"GetAuthenticationTypeToken",2],[2832,"ext","codeunit",7201,"GetAuthenticationTypeToken",1],[2837,"ext","codeunit",7201,"ReplaceUserNamePasswordInConnectionString",3],[2839,"call","InitializeCRMConnection",2],[2840,"call","ProcessConnectionFailures",0],[2844,"ext","codeunit",5344,"CDSServiceName",0],[2848,"call","IsSolutionOutdated",1],[2856,"call","ImportDefaultCRMSolution",1],[2858,"call","ProcessConnectionFailures",0],[2862,"call","ImportDefaultSalesProSolution",1],[2864,"call","ProcessConnectionFailures",0],[2869,"call","GetIntegrationAdminRoleID",0],[2870,"call","GetIntegrationUserRoleID",0],[2871,"call","GetSalesProIntegrationRoleId",0],[2880,"ext","codeunit",7201,"IsIntegrationEnabled",0],[2881,"ext","codeunit",7201,"RegisterConnection",0],[2882,"ext","codeunit",7201,"ActivateConnection",0],[2884,"ext","codeunit",7201,"GetOwningTeamId",1],[2887,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2890,"ext","codeunit",7201,"GetCoupledBusinessUnitId",0],[2893,"call","GetIntegrationAdminRoleID",0],[2893,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2895,"ext","codeunit",7201,"AssignTeamRole",3],[2897,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2900,"ext","codeunit",7201,"GetCoupledBusinessUnitId",0],[2903,"call","GetIntegrationUserRoleID",0],[2903,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2905,"ext","codeunit",7201,"AssignTeamRole",3],[2907,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2911,"ext","codeunit",7201,"GetCoupledBusinessUnitId",0],[2914,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0],[2916,"ext","codeunit",7201,"AssignTeamRole",3],[2918,"ext","codeunit",7201,"GetDefaultBusinessUnitName",0]]},{"name":"IsSolutionOutdated","line":2933,"kind":"procedure","params":2,"steps":[[2942,"ext","codeunit",7201,"GetTempConnectionName",0]]},{"name":"CheckModifyCRMConnectionURL","line":2975,"kind":"procedure","params":1,"steps":[[2982,"call","FirstCheckCRMConnectionURL",3]]},{"name":"FirstCheckCRMConnectionURL","line":2995,"kind":"procedure","access":"local","params":3,"steps":[[3010,"ext","codeunit",5334,"GetAllowNonSecureConnections",0],[3011,"ext","codeunit",5344,"SHORT",0],[3013,"ext","codeunit",5344,"SHORT",0]]},{"name":"CheckCRMConnectionURL","line":3017,"kind":"procedure","params":1,"steps":[[3024,"call","FirstCheckCRMConnectionURL",3]]},{"name":"ConstructConnectionStringForSolutionImport","line":3058,"kind":"procedure","params":1,"steps":[[3066,"ext","codeunit",5344,"SHORT",0]]},{"name":"InitializeCRMConnection","line":3074,"kind":"procedure","access":"local","params":2,"steps":[[3080,"ext","table",5330,"GetSecretConnectionStringWithCredentials",0],[3083,"call","TestCRMConnection",1],[3084,"call","ProcessConnectionFailures",0]]},{"name":"ProcessConnectionFailures","line":3089,"kind":"procedure","params":0,"steps":[[3098,"ext","codeunit",1291,"Collect",0],[3100,"ext","codeunit",1291,"TryCastToType",1],[3102,"ext","codeunit",5344,"SHORT",0],[3104,"ext","codeunit",1291,"TryCastToType",1],[3108,"ext","codeunit",1291,"TryCastToType",1],[3112,"ext","codeunit",1291,"TryCastToType",1],[3114,"ext","codeunit",5344,"SHORT",0],[3116,"ext","codeunit",1291,"CastToType",2],[3121,"ext","codeunit",5344,"SHORT",0],[3126,"ext","codeunit",5344,"SHORT",0],[3130,"ext","codeunit",1291,"GetMessage",0],[3137,"ext","codeunit",1291,"Rethrow",0]]},{"name":"GetIntegrationTableMappingFromCRMID","line":3140,"kind":"procedure","access":"local","params":3,"steps":[[3149,"call","IsCRMTable",1],[3153,"event","OnGetIntegrationTableMappingFromCRMIDOnBeforeFindTableID",1],[3183,"call","GetTableCaption",1]]},{"name":"OnInitializingNotificationWithDefaultState","line":3187,"kind":"procedure","access":"local","params":0,"steps":[[3191,"ext","table",1518,"InsertDefault",4],[3191,"call","GetCommonNotificationID",0],[3192,"ext","table",1518,"InsertDefault",4],[3192,"call","GetSkippedNotificationID",0]]},{"name":"DisableNotification","line":3196,"kind":"procedure","params":1,"steps":[[3202,"ext","table",1518,"Disable",1],[3203,"ext","table",1518,"InsertDefault",4],[3203,"call","GetNotificationName",1],[3203,"call","GetNotificationDescription",1],[3204,"call","GetNotificationName",1]]},{"name":"GetNotificationName","line":3207,"kind":"procedure","access":"local","params":1,"steps":[[3210,"call","GetCommonNotificationID",0],[3212,"call","GetSkippedNotificationID",0]]},{"name":"GetNotificationDescription","line":3218,"kind":"procedure","access":"local","params":1,"steps":[[3221,"call","GetCommonNotificationID",0],[3223,"call","GetSkippedNotificationID",0]]},{"name":"SendRestoredSyncNotification","line":3255,"kind":"procedure","access":"local","params":1,"steps":[[3263,"call","SendNotification",1]]},{"name":"SendResultNotification","line":3266,"kind":"procedure","params":1,"steps":[[3277,"ext","table",5331,"FindByRecordID",1],[3279,"call","SendSkippedSyncNotification",1],[3282,"call","GetNotificationDetailsFromIntegrationSyncJobEntry",4],[3288,"call","GetNotificationDetailsFromIntegrationSyncJobEntry",4],[3298,"ext","table",5338,"GetErrorForRecordID",2],[3302,"call","SendNotification",1]]},{"name":"SendSkippedSyncNotification","line":3305,"kind":"procedure","access":"local","params":1,"steps":[[3310,"ext","table",1518,"IsEnabled",1],[3310,"call","GetSkippedNotificationID",0],[3313,"call","GetSkippedNotificationID",0],[3318,"call","GetSkippedNotificationID",0]]},{"name":"SendSyncNotification","line":3325,"kind":"procedure","access":"local","params":1,"steps":[[3329,"call","SendNotification",1],[3331,"call","SendNotification",1],[3332,"call","SendNotification",1],[3334,"call","SendMultipleSyncNotification",1]]},{"name":"SendMultipleSyncNotification","line":3337,"kind":"procedure","access":"local","params":1,"steps":[[3340,"call","SendNotification",1]]},{"name":"SendUncoupleNotification","line":3347,"kind":"procedure","access":"local","params":1,"steps":[[3351,"call","SendNotification",1],[3353,"call","SendNotification",1],[3354,"call","SendNotification",1],[3356,"call","SendMultipleUncoupleNotification",1]]},{"name":"SendCouplingNotification","line":3359,"kind":"procedure","access":"local","params":1,"steps":[[3363,"call","SendNotification",1],[3365,"call","SendNotification",1],[3366,"call","SendNotification",1],[3368,"call","SendMultipleCouplingNotification",1]]},{"name":"SendMultipleUncoupleNotification","line":3371,"kind":"procedure","access":"local","params":1,"steps":[[3374,"call","SendNotification",1]]},{"name":"SendMultipleCouplingNotification","line":3381,"kind":"procedure","access":"local","params":1,"steps":[[3384,"call","SendNotification",1]]},{"name":"SendNotification","line":3391,"kind":"procedure","access":"local","params":1,"steps":[[3396,"ext","table",1518,"IsEnabled",1],[3396,"call","GetCommonNotificationID",0],[3399,"call","GetCommonNotificationID",0],[3404,"call","GetCommonNotificationID",0]]},{"name":"ShowLog","line":3419,"kind":"procedure","params":1,"steps":[[3424,"call","GetIntegrationTableMapping",2],[3425,"ext","table",5331,"FindByRecordID",1],[3426,"ext","table",5335,"ShowLog",1],[3426,"ext","table",5331,"GetLatestJobIDFilter",0]]},{"name":"ShowOptionLog","line":3429,"kind":"procedure","params":1,"steps":[[3434,"call","GetIntegrationTableMapping",2],[3437,"ext","table",5335,"ShowLog",1],[3437,"ext","table",5334,"GetLatestJobIDFilter",0],[3439,"ext","table",5335,"ShowLog",0]]},{"name":"ShowSkippedRecords","line":3442,"kind":"procedure","params":1,"steps":[[3451,"ext","page",5333,"SetRecords",1]]},{"name":"CoupleCRMEntity","line":3456,"kind":"procedure","params":4,"steps":[[3461,"ext","table",5332,"Initialize",1],[3463,"write",5332,"Insert"],[3464,"write",5332,"Modify"],[3466,"ext","table",5331,"CoupleRecordIdToCRMID",2],[3467,"ext","table",5332,"GetPerformInitialSynchronization",0],[3469,"ext","table",5332,"GetInitialSynchronizationDirection",0],[3470,"call","PerformInitialSynchronization",3]]},{"name":"InitializeProxyVersionList","line":3486,"kind":"procedure","params":1,"steps":[[3497,"write",9160,"Insert"]]},{"name":"GetLastProxyVersionItem","line":3502,"kind":"procedure","params":0,"steps":[[3506,"call","InitializeProxyVersionList",1]]},{"name":"GetNotificationDetailsFromIntegrationSyncJobEntry","line":3511,"kind":"procedure","access":"local","params":4,"steps":[[3517,"ext","table",5338,"GetErrorForRecordID",2]]},{"name":"ClearConnectionDisableReason","line":3523,"kind":"procedure","params":1,"steps":[[3528,"call","GetCRMDisabledErrorReasonNotificationId",0],[3531,"write",5330,"Modify"]]},{"name":"IsWorkingConnection","line":3540,"kind":"procedure","params":0,"steps":[[3544,"ext","table",5330,"TryReadSystemUsers",0]]},{"name":"DisableConnection","line":3547,"kind":"procedure","access":"local","params":0,"steps":[[3557,"validate",5330,"Is Enabled"],[3558,"validate",5330,"Disable Reason"],[3561,"write",5330,"Modify"]]},{"name":"SendConnectionDisabledNotification","line":3567,"kind":"procedure","params":1,"steps":[[3571,"call","GetCRMDisabledErrorReasonNotificationId",0]]},{"name":"InitializeCRMSynchStatus","line":3586,"kind":"procedure","params":0,"steps":[[3592,"write",5328,"Insert"]]},{"name":"InitializeCRMSynchStatus","line":3596,"kind":"procedure","access":"internal","params":1,"steps":[[3600,"write",5328,"Insert"]]},{"name":"HasUncoupledSelectedUsers","line":3606,"kind":"procedure","params":1,"steps":[[3613,"ext","table",5331,"FindRecordIDFromID",3]]},{"name":"IsDataIntegrationEnabled","line":3620,"kind":"procedure","access":"local","params":1,"steps":[[3625,"ext","table",5330,"IsEnabled",0]]},{"name":"DisableConnectionOnAfterLongSynchError","line":3629,"kind":"procedure","access":"local","params":1,"steps":[[3639,"call","DisableConnection",0],[3643,"write",5330,"Modify"]]},{"name":"ForceSynchronizeDataIntegration","line":3648,"kind":"procedure","access":"local","params":2,"steps":[[3653,"call","IsCDSIntegrationEnabled",0],[3653,"call","IsCRMIntegrationEnabled",0],[3656,"call","UpdateOneNow",1]]},{"name":"ForceSynchronizeRecords","line":3661,"kind":"procedure","access":"local","params":2,"steps":[[3670,"call","IsCDSIntegrationEnabled",0],[3670,"call","IsCRMIntegrationEnabled",0],[3674,"ext","table",5331,"FindByRecordID",1],[3682,"call","UpdateMultipleNow",1]]},{"name":"RegisterAssistedSetup","line":3687,"kind":"procedure","params":0,"steps":[[3696,"ext","codeunit",1990,"Exists",3],[3697,"ext","codeunit",1990,"InsertAssistedSetup",10],[3698,"ext","codeunit",5344,"SHORT",0],[3698,"ext","codeunit",5344,"SHORT",0]]},{"name":"IsCRMIntegrationRecord","line":3703,"kind":"procedure","params":1,"steps":[[3709,"event","OnIsCRMIntegrationRecord",0],[3715,"ext","table",5335,"DoesExistForTable",1]]},{"name":"GetDatabaseTableTriggerSetup","line":3719,"kind":"procedure","params":5,"steps":[[3731,"event","OnEnabledDatabaseTriggersSetup",0],[3736,"call","IsCRMIntegrationRecord",1],[3740,"ext","table",5330,"IsEnabled",0],[3741,"call","IsCRMIntegrationRecord",1]]},{"name":"OnDatabaseInsert","line":3755,"kind":"procedure","params":1,"steps":[[3757,"call","ReactivateJobForTable",1]]},{"name":"OnDatabaseModify","line":3761,"kind":"procedure","params":1,"steps":[[3763,"call","ReactivateJobForTable",1]]},{"name":"OnDatabaseRename","line":3767,"kind":"procedure","params":2,"steps":[[3769,"call","ReactivateJobForTable",1]]},{"name":"ReactivateJobForTable","line":3772,"kind":"procedure","access":"internal","params":1,"steps":[[3790,"ext","table",5330,"IsEnabled",0],[3796,"call","IsCRMIntegrationRecord",1],[3808,"ext","table",5335,"FindMappingForTable",1],[3819,"ext","codeunit",9900,"IsUpgradeInProgress",0],[3821,"call","UserCanRescheduleJob",0],[3843,"event","OnBeforeRescheduleJobQueueEntries",0],[3853,"call","DoesJobActOnTable",2],[3858,"ext","table",472,"GetRecLockedExtendedTimeout",0],[3863,"write",472,"Modify"]]},{"name":"FindCoupledToCRMField","line":3916,"kind":"procedure","access":"internal","params":2,"steps":[[3930,"event","OnBeforeFindCoupledToCRMField",1]]},{"name":"EnableUnitGroupMapping","line":3961,"kind":"procedure","params":0,"steps":[[3965,"call","AdjustUnitGroupCRMConnectionSetup",0],[3967,"call","UserCanRescheduleJob",0],[3976,"run","codeunit",453]]},{"name":"DisableUnitGroupMapping","line":3981,"kind":"procedure","params":0,"steps":[[3988,"write",5331,"DeleteAll"],[3992,"write",5331,"DeleteAll"],[3996,"write",5331,"DeleteAll"],[3999,"write",5373,"Delete"],[4002,"write",5373,"Delete"],[4005,"write",5373,"Delete"],[4007,"call","RemoveIntegrationTableMapping",2],[4008,"call","RemoveIntegrationTableMapping",2],[4009,"call","RemoveIntegrationTableMapping",2]]},{"name":"AdjustUnitGroupCRMConnectionSetup","line":4012,"kind":"procedure","params":0,"steps":[[4019,"write",5331,"DeleteAll"],[4021,"write",5373,"Delete"],[4022,"call","RemoveIntegrationTableMapping",2]]},{"name":"RemoveIntegrationTableMapping","line":4025,"kind":"procedure","access":"local","params":2,"steps":[[4039,"write",472,"DeleteAll",1],[4041,"write",5335,"Delete",1]]},{"name":"UpdateItemUnitGroup","line":4045,"kind":"procedure","params":0,"steps":[[4062,"write",5400,"Insert"]]},{"name":"UpdateResourceUnitGroup","line":4073,"kind":"procedure","params":0,"steps":[[4090,"write",5400,"Insert"]]},{"name":"IsIntegrationRecordChild","line":4115,"kind":"procedure","params":1,"steps":[[4119,"event","OnIsIntegrationRecordChild",0]]},{"name":"IsFieldServiceIntegrationAppInstalled","line":4152,"kind":"procedure","params":0,"steps":[[4156,"ext","codeunit",2504,"IsInstalledByAppId",1]]},{"name":"HandleOnOptionDeletionConflictDetected","line":4160,"kind":"procedure","access":"local","params":3,"steps":[[4167,"call","IsCDSIntegrationEnabled",0],[4167,"call","IsCRMIntegrationEnabled",0],[4173,"call","RemoveOptionMappingFromRecRef",1],[4175,"call","RemoveOptionMapping",3],[4175,"ext","table",5334,"GetRecordRefOptionId",1]]}]}