---
title: "Codeunit 5334 CRM Setup Defaults"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/
type: codeunit
id: 5334
name: "CRM Setup Defaults"
app: "Base Application"
namespace: Microsoft.Integration.D365Sales
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5334 CRM Setup Defaults

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5334-crm-setup-defaults/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Integration.D365Sales |
| Versions | 17-28 |
| Source file | Integration/D365Sales/CRMSetupDefaults.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ResetConfiguration | (Record CRM Connection Setup) | - | public | 17-28 | - | - |
| ResetExtendedPriceListConfiguration | () | - | public | 17-28 | - | - |
| ResetItemProductMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| ResetResourceProductMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| ResetSalesInvoiceHeaderInvoiceMapping | (Code[20], Boolean, Boolean) | - | public | 17-28 | - | - |
| ResetSalesInvoiceLineInvoiceMapping | (Code[20]) | - | public | 17-28 | - | - |
| ResetSalesOrderMapping | (Code[20], Boolean, Boolean) | - | public | 17-28 | - | - |
| ResetSalesOrderMappingConfiguration | (Record CRM Connection Setup) | - | public | 17-28 | - | - |
| ResetCustomerPriceGroupPricelevelMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| ResetPriceListHeaderPricelevelMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| ResetUnitOfMeasureUoMScheduleMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| ResetOpportunityMapping | (Code[20], Boolean) | - | public | 17-28 | - | - |
| SetIntegrationFieldMappingClearValueOnFailedSync | () | - | public | 17-28 | - | - |
| SetIntegrationFieldMappingNotNull | () | - | public | 17-28 | - | - |
| CreateJobQueueEntry | (Record Integration Table Mapping) | Boolean | public | 17-28 | - | - |
| RecreateSalesOrderStatusJobQueueEntry | (Boolean) | - | public | 17-28 | - | - |
| RecreateSalesOrderNotesJobQueueEntry | (Boolean) | - | public | 17-28 | - | - |
| RecreateJobQueueEntryFromIntTableMapping | (Record Integration Table Mapping, Integer, Boolean, Integer) | - | public | 17-28 | - | - |
| ResetCRMNAVConnectionData | () | - | public | 17-28 | - | - |
| RecreateAutoCreateSalesOrdersJobQueueEntry | (Boolean) | - | public | 17-28 | - | - |
| RecreateAutoProcessSalesQuotesJobQueueEntry | (Boolean) | - | public | 17-28 | - | - |
| DeleteAutoCreateSalesOrdersJobQueueEntry | () | - | public | 17-28 | - | - |
| DeleteAutoProcessSalesQuotesJobQueueEntry | () | - | public | 17-28 | - | - |
| GetAddPostedSalesDocumentToCRMAccountWallConfig | () | Boolean | public | 17-28 | - | - |
| GetAllowNonSecureConnections | () | Boolean | public | 17-28 | - | - |
| GetCRMTableNo | (Integer) | Integer | public | 17-28 | - | - |
| GetDefaultDirection | (Integer) | Integer | public | 17-28 | - | - |
| GetProductQuantityPrecision | () | Integer | public | 17-28 | - | - |
| GetNameFieldNo | (Integer) | Integer | public | 17-28 | - | - |
| GetTableFilterFromView | (Integer, Text, Text) | Text | public | 17-28 | - | - |
| GetPrioritizedMappingList | (var Record Name/Value Buffer) | - | public | 17-28 | - | - |
| GetTableIDCRMEntityNameMapping | (var Record Name/Value Buffer) | - | public | 17-28 | - | - |
| SetCustomIntegrationsTableMappings | (Record CRM Connection Setup) | - | public | 17-28 | - | - |
| RecreateItemAvailabilityJobQueueEntry | (Boolean) | - | public | 18-28 | - | - |
| DeleteItemAvailabilityJobQueueEntry | () | - | public | 18-28 | - | - |
| AddEntityTableMapping | (Text, Integer, var Record Name/Value Buffer) | - | public | 18-28 | - | - |
| CreateInventoryQuantityFieldMapping | () | - | public | 18-28 | - | - |
| ResetUnitGroupMappingConfiguration | () | - | public | 19-28 | - | - |
| ResetUnitGroupUoMScheduleMapping | (Code[20], Boolean) | - | public | 19-28 | - | - |
| ResetItemUnitOfMeasureUoMMapping | (Code[20], Boolean) | - | public | 19-28 | - | - |
| ResetResourceUnitOfMeasureUoMMapping | (Code[20], Boolean) | - | public | 19-28 | - | - |
| ResetBidirectionalSalesOrderMapping | (Code[20], Boolean, Boolean) | - | public | 21-28 | - | - |
| ResetBidirectionalSalesOrderLineMapping | (Code[20]) | - | public | 21-28 | - | - |
| RecreateArchivedSalesOrdersJobQueueEntry | (Boolean) | - | public | 21-28 | - | - |
| InsertIntegrationTableMapping | (var Record Integration Table Mapping, Code[20], Integer, Integer, Integer, Integer, Code[10], Code[10], Boolean) | - | public | 25-28 | - | - |
| InsertIntegrationFieldMapping | (Code[20], Integer, Integer, Option, Text, Boolean, Boolean) | - | public | 25-28 | - | - |
| RecreateJobQueueEntry | (Boolean, Integer, Integer, Text, Boolean) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterResetConfiguration | (Record CRM Connection Setup) | 17-28 | - | - |
| Integration event | OnAfterResetCustomerAccountMapping | (Code[20]) | 17-22 | Pending 20.0 | Event is not raised anywhere |
| Integration event | OnGetCDSTableNo | (Integer, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnAddEntityTableMapping | (var Record Name/Value Buffer) | 17-28 | - | - |
| Integration event | OnBeforeResetItemProductMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetResourceProductMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetSalesInvoiceHeaderInvoiceMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetSalesInvoiceLineInvoiceMapping | (var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetSalesOrderMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetCustomerPriceGroupPricelevelMapping | (var Code[20], var Boolean, var Boolean) | 17-22 | Pending 18.0 | Subscribe to OnBeforeResetPriceListHeaderPricelevelMapping. |
| Integration event | OnBeforeResetPriceListHeaderPricelevelMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetPriceListLineProductPricelevelMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetSalesPriceProductPricelevelMapping | (var Code[20], var Boolean, var Boolean) | 17-24 | Pending 18.0 | Subscribe to OnBeforeResetPriceListLineProductPricelevelMapping. |
| Integration event | OnBeforeResetUnitOfMeasureUoMScheduleMapping | (var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeResetOpportunityMapping | (var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertIntegrationTableMapping | (var Record Integration Table Mapping, var Code[20], var Integer, var Integer, var Integer, var Integer, var Code[10], var Code[10], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertIntegrationFieldMapping | (var Code[20], var Integer, var Integer, var Option, var Text, var Boolean, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetDefaultDirection | (Integer, var Option, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetNameFieldNo | (Integer, var Integer) | 17-28 | - | - |
| Integration event | OnBeforeAddEntityTableMapping | (var Text, var Integer, var Record Name/Value Buffer) | 17-28 | - | - |
| Integration event | OnBeforeResetConfiguration | (var Record CRM Connection Setup, var Boolean) | 17-28 | - | - |
| Integration event | OnResetCustomerPriceGroupPricelevelMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetItemProductMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetOpportunityMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetPriceListHeaderPricelevelMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetPriceListLineProductPricelevelMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetResourceProductMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetSalesInvoiceHeaderInvoiceMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetSalesInvoiceLineInvoiceMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetSalesOrderMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnResetSalesPriceProductPricelevelMappingOnAfterInsertFieldsMapping | (Code[20]) | 17-28 | - | - |
| Integration event | OnBeforeResetUnitGroupUoMScheduleMapping | (var Code[20], var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeResetItemUnitOfMeasureUoMMapping | (var Code[20], var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeResetResourceUnitOfMeasureUoMMapping | (var Code[20], var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeResetBidirectionalSalesOrderMapping | (var Code[20], var Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeResetBidirectionalSalesOrderLineMapping | (var Code[20], var Boolean) | 21-28 | - | - |
| Integration event | OnResetBidirectionalSalesOrderMappingOnAfterInsertFieldsMapping | (Code[20]) | 21-28 | - | - |
| Integration event | OnResetBidirectionalSalesOrderLineMappingOnAfterInsertFieldsMapping | (Code[20]) | 21-28 | - | - |
| Integration event | OnGetTableIDCRMEntityNameMappingOnAfterAddFSEntityTableMapping | (var Record Name/Value Buffer) | 25-28 | Pending 27.0 | This event is never raised. |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
