---
title: "Table 5334 CRM Option Mapping"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/
type: table
id: 5334
name: "CRM Option Mapping"
app: "Base Application"
namespace: Microsoft.Integration.Dataverse
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 5334 CRM Option Mapping

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Integration.Dataverse |
| Versions | 17-28 |
| Source file | Integration/Dataverse/CRMOptionMapping.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Record ID | RecordId | 17-28 | - | - |
| 2 | Option Value | Integer | 17-28 | - | - |
| 3 | Table ID | Integer | 17-28 | - | - |
| 4 | Integration Table ID | Integer | 17-28 | - | - |
| 5 | Integration Field ID | Integer | 17-28 | - | - |
| 6 | Option Value Caption | Text[250] | 17-28 | - | - |
| 7 | Last Synch. Result | Option | 20-28 | - | - |
| 8 | Skipped | Boolean | 20-28 | - | - |
| 9 | Last Synch. Job ID | Guid | 20-28 | - | - |
| 10 | Last Synch. CRM Result | Option | 20-28 | - | - |
| 11 | Last Synch. CRM Job ID | Guid | 20-28 | - | - |
| 12 | Last Synch. Modified On | DateTime | 20-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Record ID | 17-28 |
| Key2 | Integration Table ID, Integration Field ID, Option Value | 17-28 |
| Key3 | Skipped | 20-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| FindRecordID | (Integer, Integer, Integer) | Boolean | public | 17-28 | - | - |
| GetRecordKeyValue | () | Text | public | 17-28 | - | - |
| AssertCRMOptionIdCanBeMapped | (RecordId, Integer) | - | public | 20-28 | - | - |
| InsertRecord | (RecordId, Integer, Text[250]) | Boolean | public | 20-28 | - | - |
| IsCRMRecordRefMapped | (RecordRef, var Record CRM Option Mapping) | Boolean | public | 20-28 | - | - |
| IsOptionMappingSkipped | (RecordRef, Boolean) | Boolean | public | 20-28 | - | - |
| MarkLastSynchAsFailure | (RecordRef, Boolean, Guid, var Boolean) | - | public | 20-28 | - | - |
| UpdateOptionMapping | (Record Integration Table Mapping, RecordRef, RecordRef, Guid) | - | public | 20-28 | - | - |
| GetRecordRefOptionId | (RecordRef) | Integer | public | 20-28 | - | - |
| GetRecordRefOptionValue | (RecordRef) | Text[250] | public | 20-28 | - | - |
| GetLatestJobIDFilter | () | Text | public | 20-28 | - | - |
| GetLatestError | (var Record Integration Synch. Job Errors) | Boolean | public | 20-28 | - | - |
| GetMetadataInfo | (RecordRef, var Text, var Text) | - | internal | 20-28 | - | - |
| GetDocumentMetadataInfo | (RecordRef, Option, var Text, var Text) | - | internal | 20-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnIsCRMRecordRefMapped | (RecordRef, var Record CRM Option Mapping, var Boolean) | 20-28 | - | - |
| Integration event | OnGetMetadataInfo | (RecordRef, var Text, var Text) | 20-28 | - | - |

## 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.
