{"title":"Codeunit 5334 CRM Setup Defaults, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/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":5334,"name":"CRM Setup Defaults","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/source/","path":"src/Layers/W1/BaseApp/Integration/D365Sales/CRMSetupDefaults.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/"},"codeunit:5330":{"name":"CRM Integration Management","url":"https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/"},"codeunit:7001":{"name":"Price Calculation Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/7001-price-calculation-mgt/"},"codeunit:5353":{"name":"CRM Enable Posts","url":"https://jonas-paprotka.de/ref/codeunit/5353-crm-enable-posts/"},"codeunit:7204":{"name":"CDS Setup Defaults","url":"https://jonas-paprotka.de/ref/codeunit/7204-cds-setup-defaults/"},"table:5335":{"name":"Integration Table Mapping","url":"https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/"},"table:5336":{"name":"Integration Field Mapping","url":"https://jonas-paprotka.de/ref/table/5336-integration-field-mapping/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"codeunit:5344":{"name":"CRM Product Name","url":"https://jonas-paprotka.de/ref/codeunit/5344-crm-product-name/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:823":{"name":"Name/Value Buffer","url":"https://jonas-paprotka.de/ref/table/823-name-value-buffer/"}},"procs":[{"name":"ResetConfiguration","line":52,"kind":"procedure","params":1,"steps":[[61,"event","OnBeforeResetConfiguration",1],[65,"ext","table",5330,"DoReadCRMData",0],[66,"ext","codeunit",7200,"IsTeamOwnershipModelSelected",0],[68,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[69,"call","ResetUnitGroupUoMScheduleMapping",2],[70,"call","ResetItemUnitOfMeasureUoMMapping",2],[71,"call","ResetResourceUnitOfMeasureUoMMapping",2],[73,"call","ResetUnitOfMeasureUoMScheduleMapping",2],[74,"call","ResetItemProductMapping",2],[75,"call","ResetResourceProductMapping",2],[76,"ext","codeunit",7001,"IsExtendedPriceCalculationEnabled",0],[77,"call","ResetPriceListHeaderPricelevelMapping",2],[78,"call","ResetPriceListLineProductPricelevelMapping",2],[80,"call","ResetCustomerPriceGroupPricelevelMapping",2],[81,"call","ResetSalesPriceProductPricelevelMapping",2],[83,"call","ResetSalesInvoiceHeaderInvoiceMapping",3],[84,"call","ResetSalesInvoiceLineInvoiceMapping",0],[85,"call","ResetOpportunityMapping",2],[87,"call","ResetSalesOrderMapping",3],[88,"call","RecreateSalesOrderStatusJobQueueEntry",1],[89,"call","RecreateSalesOrderNotesJobQueueEntry",1],[90,"run","codeunit",5353],[93,"call","ResetBidirectionalSalesOrderMapping",3],[94,"call","ResetBidirectionalSalesOrderLineMapping",0],[95,"call","RecreateSalesOrderNotesJobQueueEntry",1],[96,"call","RecreateArchivedSalesOrdersJobQueueEntry",1],[99,"call","RecreateStatisticsJobQueueEntry",1],[101,"call","RecreateAutoCreateSalesOrdersJobQueueEntry",1],[103,"call","RecreateAutoProcessSalesQuotesJobQueueEntry",1],[105,"call","RecreateItemAvailabilityJobQueueEntry",1],[107,"ext","codeunit",5330,"IsCRMSolutionInstalled",0],[108,"call","ResetCRMNAVConnectionData",0],[110,"call","ResetDefaultCRMPricelevel",1],[112,"call","SetCustomIntegrationsTableMappings",1],[114,"ext","codeunit",7204,"AddExtraIntegrationFieldMappings",0]]},{"name":"ResetExtendedPriceListConfiguration","line":117,"kind":"procedure","params":0,"steps":[[124,"ext","table",5330,"DoReadCRMData",0],[126,"call","ResetPriceListHeaderPricelevelMapping",2],[127,"call","ResetPriceListLineProductPricelevelMapping",2]]},{"name":"ResetUnitGroupMappingConfiguration","line":130,"kind":"procedure","params":0,"steps":[[137,"ext","table",5330,"DoReadCRMData",0],[139,"call","ResetUnitGroupUoMScheduleMapping",2],[140,"call","ResetItemUnitOfMeasureUoMMapping",2],[141,"call","ResetResourceUnitOfMeasureUoMMapping",2],[143,"call","ResetItemProductUnitGroupMapping",0],[144,"call","ResetResourceProductUnitGroupMapping",0],[145,"call","ResetPriceListLineProductPricelevelUnitGroupMapping",0]]},{"name":"ResetItemProductUnitGroupMapping","line":148,"kind":"procedure","access":"local","params":0,"steps":[[157,"write",5335,"Modify"],[159,"call","InsertIntegrationFieldMapping",7],[171,"write",5336,"Delete"]]},{"name":"ResetResourceProductUnitGroupMapping","line":174,"kind":"procedure","access":"local","params":0,"steps":[[183,"write",5335,"Modify"],[186,"call","InsertIntegrationFieldMapping",7],[198,"write",5336,"Delete"]]},{"name":"ResetPriceListLineProductPricelevelUnitGroupMapping","line":201,"kind":"procedure","access":"local","params":0,"steps":[[210,"call","InsertIntegrationFieldMapping",7],[221,"write",5336,"Delete"]]},{"name":"ResetItemProductMapping","line":225,"kind":"procedure","params":2,"steps":[[233,"event","OnBeforeResetItemProductMapping",1],[236,"call","InsertIntegrationTableMapping",9],[243,"ext","table",5335,"SetTableFilter",1],[243,"call","GetTableFilterFromView",3],[245,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[249,"call","SetIntegrationTableFilterForCRMProduct",3],[252,"call","InsertIntegrationFieldMapping",7],[260,"call","InsertIntegrationFieldMapping",7],[268,"call","InsertIntegrationFieldMapping",7],[276,"call","InsertIntegrationFieldMapping",7],[284,"call","InsertIntegrationFieldMapping",7],[292,"call","InsertIntegrationFieldMapping",7],[300,"call","InsertIntegrationFieldMapping",7],[308,"call","InsertIntegrationFieldMapping",7],[316,"call","InsertIntegrationFieldMapping",7],[324,"call","InsertIntegrationFieldMapping",7],[331,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[333,"call","InsertIntegrationFieldMapping",7],[341,"call","InsertIntegrationFieldMapping",7],[348,"event","OnResetItemProductMappingOnAfterInsertFieldsMapping",0],[349,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetResourceProductMapping","line":353,"kind":"procedure","params":2,"steps":[[361,"event","OnBeforeResetResourceProductMapping",1],[365,"call","InsertIntegrationTableMapping",9],[372,"ext","table",5335,"SetTableFilter",1],[372,"call","GetTableFilterFromView",3],[374,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[379,"call","SetIntegrationTableFilterForCRMProduct",3],[382,"call","InsertIntegrationFieldMapping",7],[390,"call","InsertIntegrationFieldMapping",7],[398,"call","InsertIntegrationFieldMapping",7],[406,"call","InsertIntegrationFieldMapping",7],[414,"call","InsertIntegrationFieldMapping",7],[422,"call","InsertIntegrationFieldMapping",7],[430,"call","InsertIntegrationFieldMapping",7],[437,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[439,"call","InsertIntegrationFieldMapping",7],[446,"event","OnResetResourceProductMappingOnAfterInsertFieldsMapping",0],[447,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetSalesInvoiceHeaderInvoiceMapping","line":451,"kind":"procedure","params":3,"steps":[[461,"event","OnBeforeResetSalesInvoiceHeaderInvoiceMapping",1],[464,"call","InsertIntegrationTableMapping",9],[470,"write",5335,"Modify"],[472,"ext","codeunit",7200,"GetCDSCompany",1],[474,"ext","table",5335,"SetIntegrationTableFilter",1],[475,"call","GetTableFilterFromView",3],[476,"write",5335,"Modify"],[480,"call","InsertIntegrationFieldMapping",7],[489,"call","InsertIntegrationFieldMapping",7],[496,"call","InsertIntegrationFieldMapping",7],[502,"call","SetIntegrationFieldMappingNotNull",0],[506,"call","InsertIntegrationFieldMapping",7],[514,"call","InsertIntegrationFieldMapping",7],[522,"call","InsertIntegrationFieldMapping",7],[530,"call","InsertIntegrationFieldMapping",7],[538,"call","InsertIntegrationFieldMapping",7],[546,"call","InsertIntegrationFieldMapping",7],[554,"call","InsertIntegrationFieldMapping",7],[562,"call","InsertIntegrationFieldMapping",7],[570,"call","InsertIntegrationFieldMapping",7],[578,"call","InsertIntegrationFieldMapping",7],[586,"call","InsertIntegrationFieldMapping",7],[594,"call","InsertIntegrationFieldMapping",7],[602,"call","InsertIntegrationFieldMapping",7],[610,"call","InsertIntegrationFieldMapping",7],[618,"call","InsertIntegrationFieldMapping",7],[626,"call","InsertIntegrationFieldMapping",7],[634,"call","InsertIntegrationFieldMapping",7],[642,"call","InsertIntegrationFieldMapping",7],[650,"call","InsertIntegrationFieldMapping",7],[658,"call","InsertIntegrationFieldMapping",7],[666,"call","InsertIntegrationFieldMapping",7],[674,"call","InsertIntegrationFieldMapping",7],[682,"call","InsertIntegrationFieldMapping",7],[689,"event","OnResetSalesInvoiceHeaderInvoiceMappingOnAfterInsertFieldsMapping",0],[691,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetSalesInvoiceLineInvoiceMapping","line":695,"kind":"procedure","params":1,"steps":[[703,"event","OnBeforeResetSalesInvoiceLineInvoiceMapping",1],[707,"call","InsertIntegrationTableMapping",9],[713,"write",5335,"Modify"],[716,"call","InsertIntegrationFieldMapping",7],[724,"call","InsertIntegrationFieldMapping",7],[732,"call","InsertIntegrationFieldMapping",7],[740,"call","InsertIntegrationFieldMapping",7],[748,"call","InsertIntegrationFieldMapping",7],[756,"call","InsertIntegrationFieldMapping",7],[763,"event","OnResetSalesInvoiceLineInvoiceMappingOnAfterInsertFieldsMapping",0]]},{"name":"ResetSalesOrderMapping","line":767,"kind":"procedure","params":3,"steps":[[777,"event","OnBeforeResetSalesOrderMapping",1],[780,"call","InsertIntegrationTableMapping",9],[788,"ext","table",5335,"SetTableFilter",1],[789,"call","GetTableFilterFromView",3],[792,"write",5335,"Modify"],[794,"ext","codeunit",7200,"GetCDSCompany",1],[796,"ext","table",5335,"SetIntegrationTableFilter",1],[797,"call","GetTableFilterFromView",3],[798,"write",5335,"Modify"],[802,"call","InsertIntegrationFieldMapping",7],[811,"call","InsertIntegrationFieldMapping",7],[818,"call","InsertIntegrationFieldMapping",7],[824,"call","SetIntegrationFieldMappingNotNull",0],[828,"call","InsertIntegrationFieldMapping",7],[836,"call","InsertIntegrationFieldMapping",7],[844,"call","InsertIntegrationFieldMapping",7],[852,"call","InsertIntegrationFieldMapping",7],[860,"call","InsertIntegrationFieldMapping",7],[868,"call","InsertIntegrationFieldMapping",7],[876,"call","InsertIntegrationFieldMapping",7],[884,"call","InsertIntegrationFieldMapping",7],[892,"call","InsertIntegrationFieldMapping",7],[900,"call","InsertIntegrationFieldMapping",7],[908,"call","InsertIntegrationFieldMapping",7],[916,"call","InsertIntegrationFieldMapping",7],[924,"call","InsertIntegrationFieldMapping",7],[932,"call","InsertIntegrationFieldMapping",7],[940,"call","InsertIntegrationFieldMapping",7],[948,"call","InsertIntegrationFieldMapping",7],[956,"call","InsertIntegrationFieldMapping",7],[964,"call","InsertIntegrationFieldMapping",7],[972,"call","InsertIntegrationFieldMapping",7],[980,"call","InsertIntegrationFieldMapping",7],[988,"call","InsertIntegrationFieldMapping",7],[996,"call","InsertIntegrationFieldMapping",7],[1003,"event","OnResetSalesOrderMappingOnAfterInsertFieldsMapping",0],[1005,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetBidirectionalSalesOrderMapping","line":1009,"kind":"procedure","params":3,"steps":[[1019,"event","OnBeforeResetBidirectionalSalesOrderMapping",1],[1022,"call","InsertIntegrationTableMapping",9],[1030,"ext","table",5335,"SetTableFilter",1],[1031,"call","GetTableFilterFromView",3],[1037,"ext","codeunit",7200,"GetCDSCompany",1],[1040,"ext","table",5335,"SetIntegrationTableFilter",1],[1041,"call","GetTableFilterFromView",3],[1042,"write",5335,"Modify"],[1046,"call","InsertIntegrationFieldMapping",7],[1053,"call","InsertIntegrationFieldMapping",7],[1059,"call","SetIntegrationFieldMappingNotNull",0],[1063,"call","InsertIntegrationFieldMapping",7],[1070,"call","InsertIntegrationFieldMapping",7],[1078,"call","InsertIntegrationFieldMapping",7],[1086,"call","InsertIntegrationFieldMapping",7],[1093,"call","InsertIntegrationFieldMapping",7],[1101,"call","InsertIntegrationFieldMapping",7],[1109,"call","InsertIntegrationFieldMapping",7],[1117,"call","InsertIntegrationFieldMapping",7],[1125,"call","InsertIntegrationFieldMapping",7],[1133,"call","InsertIntegrationFieldMapping",7],[1141,"call","InsertIntegrationFieldMapping",7],[1149,"call","InsertIntegrationFieldMapping",7],[1157,"call","InsertIntegrationFieldMapping",7],[1165,"call","InsertIntegrationFieldMapping",7],[1173,"call","InsertIntegrationFieldMapping",7],[1181,"call","InsertIntegrationFieldMapping",7],[1189,"call","InsertIntegrationFieldMapping",7],[1197,"call","InsertIntegrationFieldMapping",7],[1205,"call","InsertIntegrationFieldMapping",7],[1213,"call","InsertIntegrationFieldMapping",7],[1221,"call","InsertIntegrationFieldMapping",7],[1229,"call","InsertIntegrationFieldMapping",7],[1237,"call","InsertIntegrationFieldMapping",7],[1245,"call","InsertIntegrationFieldMapping",7],[1253,"call","InsertIntegrationFieldMapping",7],[1261,"call","InsertIntegrationFieldMapping",7],[1269,"call","InsertIntegrationFieldMapping",7],[1276,"event","OnResetBidirectionalSalesOrderMappingOnAfterInsertFieldsMapping",0],[1278,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetBidirectionalSalesOrderLineMapping","line":1281,"kind":"procedure","params":1,"steps":[[1289,"event","OnBeforeResetBidirectionalSalesOrderLineMapping",1],[1292,"call","InsertIntegrationTableMapping",9],[1301,"ext","table",5335,"SetTableFilter",1],[1302,"call","GetTableFilterFromView",3],[1307,"write",5335,"Modify"],[1310,"call","InsertIntegrationFieldMapping",7],[1318,"call","InsertIntegrationFieldMapping",7],[1326,"call","InsertIntegrationFieldMapping",7],[1334,"call","InsertIntegrationFieldMapping",7],[1342,"call","InsertIntegrationFieldMapping",7],[1350,"call","InsertIntegrationFieldMapping",7],[1358,"call","InsertIntegrationFieldMapping",7],[1366,"call","InsertIntegrationFieldMapping",7],[1374,"call","InsertIntegrationFieldMapping",7],[1382,"call","InsertIntegrationFieldMapping",7],[1390,"call","InsertIntegrationFieldMapping",7],[1398,"call","InsertIntegrationFieldMapping",7],[1405,"event","OnResetBidirectionalSalesOrderLineMappingOnAfterInsertFieldsMapping",0]]},{"name":"ResetSalesOrderMappingConfiguration","line":1409,"kind":"procedure","params":1,"steps":[[1416,"ext","table",5330,"DoReadCRMData",0],[1417,"ext","codeunit",7200,"IsTeamOwnershipModelSelected",0],[1419,"call","ResetBidirectionalSalesOrderMapping",3],[1420,"call","ResetBidirectionalSalesOrderLineMapping",0],[1423,"write",472,"DeleteAll"],[1424,"call","RecreateSalesOrderNotesJobQueueEntry",1],[1425,"call","RecreateArchivedSalesOrdersJobQueueEntry",1],[1428,"call","ResetSalesOrderMapping",3],[1433,"write",472,"DeleteAll"],[1434,"write",5335,"Delete"],[1436,"call","RecreateSalesOrderStatusJobQueueEntry",1],[1437,"call","RecreateSalesOrderNotesJobQueueEntry",1],[1438,"run","codeunit",5353]]},{"name":"ResetCustomerPriceGroupPricelevelMapping","line":1443,"kind":"procedure","params":2,"steps":[[1456,"call","InsertIntegrationTableMapping",9],[1462,"write",5335,"Modify"],[1464,"ext","codeunit",7200,"GetCDSCompany",1],[1466,"ext","table",5335,"SetIntegrationTableFilter",1],[1467,"call","GetTableFilterFromView",3],[1468,"write",5335,"Modify"],[1472,"call","InsertIntegrationFieldMapping",7],[1479,"event","OnResetCustomerPriceGroupPricelevelMappingOnAfterInsertFieldsMapping",0],[1481,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetSalesPriceProductPricelevelMapping","line":1484,"kind":"procedure","access":"local","params":2,"steps":[[1494,"call","InsertIntegrationTableMapping",9],[1503,"ext","table",5335,"SetTableFilter",1],[1504,"call","GetTableFilterFromView",3],[1507,"write",5335,"Modify"],[1510,"call","InsertIntegrationFieldMapping",7],[1518,"call","InsertIntegrationFieldMapping",7],[1526,"call","InsertIntegrationFieldMapping",7],[1534,"call","InsertIntegrationFieldMapping",7],[1542,"call","InsertIntegrationFieldMapping",7],[1549,"call","InsertIntegrationFieldMapping",7],[1556,"event","OnResetSalesPriceProductPricelevelMappingOnAfterInsertFieldsMapping",0],[1558,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetPriceListHeaderPricelevelMapping","line":1561,"kind":"procedure","params":2,"steps":[[1572,"event","OnBeforeResetPriceListHeaderPricelevelMapping",1],[1576,"call","InsertIntegrationTableMapping",9],[1590,"ext","table",5335,"SetTableFilter",1],[1591,"call","GetTableFilterFromView",3],[1593,"write",5335,"Modify"],[1595,"ext","codeunit",7200,"GetCDSCompany",1],[1597,"ext","table",5335,"SetIntegrationTableFilter",1],[1598,"call","GetTableFilterFromView",3],[1599,"write",5335,"Modify"],[1603,"call","InsertIntegrationFieldMapping",7],[1611,"call","InsertIntegrationFieldMapping",7],[1619,"call","InsertIntegrationFieldMapping",7],[1627,"call","InsertIntegrationFieldMapping",7],[1635,"call","InsertIntegrationFieldMapping",7],[1642,"event","OnResetPriceListHeaderPricelevelMappingOnAfterInsertFieldsMapping",0],[1644,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetPriceListLineProductPricelevelMapping","line":1647,"kind":"procedure","access":"local","params":2,"steps":[[1655,"event","OnBeforeResetPriceListLineProductPricelevelMapping",1],[1658,"call","InsertIntegrationTableMapping",9],[1669,"ext","table",5335,"SetTableFilter",1],[1670,"call","GetTableFilterFromView",3],[1673,"write",5335,"Modify"],[1676,"call","InsertIntegrationFieldMapping",7],[1684,"call","InsertIntegrationFieldMapping",7],[1692,"call","InsertIntegrationFieldMapping",7],[1700,"call","InsertIntegrationFieldMapping",7],[1708,"call","InsertIntegrationFieldMapping",7],[1714,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[1716,"call","InsertIntegrationFieldMapping",7],[1724,"call","InsertIntegrationFieldMapping",7],[1732,"call","InsertIntegrationFieldMapping",7],[1739,"event","OnResetPriceListLineProductPricelevelMappingOnAfterInsertFieldsMapping",0],[1741,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetUnitOfMeasureUoMScheduleMapping","line":1745,"kind":"procedure","params":2,"steps":[[1753,"event","OnBeforeResetUnitOfMeasureUoMScheduleMapping",1],[1756,"call","InsertIntegrationTableMapping",9],[1763,"call","InsertIntegrationFieldMapping",7],[1770,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetUnitGroupUoMScheduleMapping","line":1774,"kind":"procedure","params":2,"steps":[[1782,"event","OnBeforeResetUnitGroupUoMScheduleMapping",1],[1786,"call","InsertIntegrationTableMapping",9],[1794,"write",5335,"Modify"],[1797,"call","InsertIntegrationFieldMapping",7],[1807,"write",5336,"Modify"],[1810,"call","InsertIntegrationFieldMapping",7],[1817,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetItemUnitOfMeasureUoMMapping","line":1821,"kind":"procedure","params":2,"steps":[[1829,"event","OnBeforeResetItemUnitOfMeasureUoMMapping",1],[1833,"call","InsertIntegrationTableMapping",9],[1843,"write",5335,"Modify"],[1846,"call","InsertIntegrationFieldMapping",7],[1856,"write",5336,"Modify"],[1859,"call","InsertIntegrationFieldMapping",7],[1866,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetResourceUnitOfMeasureUoMMapping","line":1870,"kind":"procedure","params":2,"steps":[[1878,"event","OnBeforeResetResourceUnitOfMeasureUoMMapping",1],[1882,"call","InsertIntegrationTableMapping",9],[1892,"write",5335,"Modify"],[1895,"call","InsertIntegrationFieldMapping",7],[1905,"write",5336,"Modify"],[1908,"call","InsertIntegrationFieldMapping",7],[1915,"call","RecreateJobQueueEntryFromIntTableMapping",4]]},{"name":"ResetOpportunityMapping","line":1919,"kind":"procedure","params":2,"steps":[[1929,"event","OnBeforeResetOpportunityMapping",1],[1932,"call","InsertIntegrationTableMapping",9],[1939,"ext","table",5335,"SetTableFilter",1],[1939,"call","GetTableFilterFromView",3],[1941,"write",5335,"Modify"],[1943,"ext","codeunit",7200,"GetCDSCompany",1],[1945,"ext","table",5335,"SetIntegrationTableFilter",1],[1946,"call","GetTableFilterFromView",3],[1947,"write",5335,"Modify"],[1951,"call","InsertIntegrationFieldMapping",7],[1959,"call","InsertIntegrationFieldMapping",7],[1967,"call","InsertIntegrationFieldMapping",7],[1976,"call","InsertIntegrationFieldMapping",7],[1983,"call","InsertIntegrationFieldMapping",7],[1989,"call","SetIntegrationFieldMappingNotNull",0],[1993,"call","InsertIntegrationFieldMapping",7],[2001,"call","InsertIntegrationFieldMapping",7],[2008,"event","OnResetOpportunityMappingOnAfterInsertFieldsMapping",0]]},{"name":"InsertIntegrationTableMapping","line":2011,"kind":"procedure","params":9,"steps":[[2017,"event","OnBeforeInsertIntegrationTableMapping",1],[2024,"call","GetDefaultDirection",1],[2026,"ext","codeunit",7200,"HasCompanyIdField",1],[2029,"ext","table",5335,"CreateRecord",12]]},{"name":"InsertIntegrationFieldMapping","line":2035,"kind":"procedure","params":7,"steps":[[2040,"event","OnBeforeInsertIntegrationFieldMapping",1],[2046,"ext","table",5336,"CreateRecord",7]]},{"name":"SetIntegrationFieldMappingClearValueOnFailedSync","line":2050,"kind":"procedure","params":0,"steps":[[2056,"write",5336,"Modify"]]},{"name":"SetIntegrationFieldMappingNotNull","line":2059,"kind":"procedure","params":0,"steps":[[2065,"write",5336,"Modify"]]},{"name":"CreateJobQueueEntry","line":2068,"kind":"procedure","params":1,"steps":[[2072,"ext","codeunit",7204,"CreateJobQueueEntry",2],[2072,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateStatisticsJobQueueEntry","line":2075,"kind":"procedure","access":"local","params":1,"steps":[[2077,"call","RecreateJobQueueEntry",5],[2081,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateItemAvailabilityJobQueueEntry","line":2085,"kind":"procedure","params":1,"steps":[[2087,"call","RecreateJobQueueEntry",5],[2091,"ext","codeunit",5344,"SHORT",0]]},{"name":"DeleteItemAvailabilityJobQueueEntry","line":2095,"kind":"procedure","params":0,"steps":[[2101,"ext","table",472,"DeleteTasks",0]]},{"name":"RecreateSalesOrderStatusJobQueueEntry","line":2105,"kind":"procedure","params":1,"steps":[[2107,"call","RecreateJobQueueEntry",5],[2111,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateSalesOrderNotesJobQueueEntry","line":2116,"kind":"procedure","params":1,"steps":[[2118,"call","RecreateJobQueueEntry",5],[2122,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateArchivedSalesOrdersJobQueueEntry","line":2127,"kind":"procedure","params":1,"steps":[[2129,"call","RecreateJobQueueEntry",5],[2133,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateJobQueueEntryFromIntTableMapping","line":2137,"kind":"procedure","params":4,"steps":[[2141,"ext","codeunit",7204,"RecreateJobQueueEntryFromIntTableMapping",6],[2141,"ext","codeunit",5344,"SHORT",0]]},{"name":"ResetCRMNAVConnectionData","line":2144,"kind":"procedure","params":0,"steps":[[2146,"ext","codeunit",5330,"SetCRMNAVConnectionUrl",1]]},{"name":"RecreateAutoCreateSalesOrdersJobQueueEntry","line":2149,"kind":"procedure","params":1,"steps":[[2151,"call","RecreateJobQueueEntry",5],[2155,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateAutoProcessSalesQuotesJobQueueEntry","line":2159,"kind":"procedure","params":1,"steps":[[2161,"call","RecreateJobQueueEntry",5],[2165,"ext","codeunit",5344,"SHORT",0]]},{"name":"RecreateJobQueueEntry","line":2169,"kind":"procedure","params":5,"steps":[[2175,"ext","table",472,"DeleteTasks",0],[2177,"ext","table",472,"InitRecurringJob",1],[2190,"run","codeunit",453],[2192,"write",472,"Insert",1]]},{"name":"DeleteAutoCreateSalesOrdersJobQueueEntry","line":2195,"kind":"procedure","params":0,"steps":[[2201,"ext","table",472,"DeleteTasks",0]]},{"name":"DeleteAutoProcessSalesQuotesJobQueueEntry","line":2204,"kind":"procedure","params":0,"steps":[[2210,"ext","table",472,"DeleteTasks",0]]},{"name":"GetCRMTableNo","line":2226,"kind":"procedure","params":1,"steps":[[2231,"event","OnGetCDSTableNo",0]]},{"name":"GetDefaultDirection","line":2273,"kind":"procedure","params":1,"steps":[[2278,"event","OnBeforeGetDefaultDirection",1]]},{"name":"GetNameFieldNo","line":2314,"kind":"procedure","params":1,"steps":[[2348,"event","OnBeforeGetNameFieldNo",0]]},{"name":"GetPrioritizedMappingList","line":2424,"kind":"procedure","params":1,"steps":[[2433,"call","AddPrioritizedMappingsToList",4],[2435,"call","AddPrioritizedMappingsToList",4],[2437,"call","AddPrioritizedMappingsToList",4],[2439,"call","AddPrioritizedMappingsToList",4],[2441,"call","AddPrioritizedMappingsToList",4],[2443,"call","AddPrioritizedMappingsToList",4],[2445,"call","AddPrioritizedMappingsToList",4],[2454,"call","AddPrioritizedMappingToList",3]]},{"name":"AddPrioritizedMappingsToList","line":2458,"kind":"procedure","access":"local","params":4,"steps":[[2472,"call","AddPrioritizedMappingToList",3]]},{"name":"AddPrioritizedMappingToList","line":2476,"kind":"procedure","access":"local","params":3,"steps":[[2485,"write",823,"Insert"]]},{"name":"GetTableIDCRMEntityNameMapping","line":2492,"kind":"procedure","params":1,"steps":[[2497,"write",823,"DeleteAll"],[2499,"call","AddEntityTableMapping",3],[2500,"call","AddEntityTableMapping",3],[2502,"call","AddEntityTableMapping",3],[2503,"call","AddEntityTableMapping",3],[2505,"call","AddEntityTableMapping",3],[2506,"call","AddEntityTableMapping",3],[2508,"call","AddEntityTableMapping",3],[2509,"call","AddEntityTableMapping",3],[2510,"call","AddEntityTableMapping",3],[2512,"call","AddEntityTableMapping",3],[2513,"call","AddEntityTableMapping",3],[2515,"call","AddEntityTableMapping",3],[2516,"call","AddEntityTableMapping",3],[2518,"call","AddEntityTableMapping",3],[2519,"call","AddEntityTableMapping",3],[2522,"ext","codeunit",7001,"IsExtendedPriceCalculationEnabled",0],[2523,"call","AddEntityTableMapping",3],[2524,"call","AddEntityTableMapping",3],[2525,"call","AddEntityTableMapping",3],[2526,"call","AddEntityTableMapping",3],[2528,"call","AddEntityTableMapping",3],[2529,"call","AddEntityTableMapping",3],[2530,"ext","codeunit",5330,"IsUnitGroupMappingEnabled",0],[2531,"call","AddEntityTableMapping",3],[2532,"call","AddEntityTableMapping",3],[2533,"call","AddEntityTableMapping",3],[2535,"call","AddEntityTableMapping",3],[2539,"call","AddEntityTableMapping",3],[2540,"call","AddEntityTableMapping",3],[2541,"call","AddEntityTableMapping",3],[2544,"call","AddEntityTableMapping",3],[2546,"event","OnAddEntityTableMapping",0]]},{"name":"AddEntityTableMapping","line":2549,"kind":"procedure","params":3,"steps":[[2551,"event","OnBeforeAddEntityTableMapping",0],[2553,"call","GetLastNameValueBuffer",1],[2556,"write",823,"Insert"]]},{"name":"ResetDefaultCRMPricelevel","line":2567,"kind":"procedure","access":"local","params":1,"steps":[[2571,"write",5330,"Modify"]]},{"name":"SetIntegrationTableFilterForCRMProduct","line":2574,"kind":"procedure","access":"local","params":3,"steps":[[2579,"ext","codeunit",7200,"GetCDSCompany",1],[2583,"ext","table",5335,"SetIntegrationTableFilter",1],[2584,"call","GetTableFilterFromView",3],[2585,"write",5335,"Modify"]]},{"name":"CreateInventoryQuantityFieldMapping","line":2588,"kind":"procedure","params":0,"steps":[[2598,"call","InsertIntegrationFieldMapping",7]]},{"name":"SetCustomIntegrationsTableMappings","line":2607,"kind":"procedure","params":1,"steps":[[2609,"event","OnAfterResetConfiguration",0]]}]}