---
title: "Codeunit 5364 Int. Option Synch. Invoke, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/points/
object: https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 5364 Int. Option Synch. Invoke, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/points/

14 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/SynchEngine/IntOptionSynchInvoke.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 15](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L15), trigger.

- [17](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L17) calls `CheckContext`
- [18](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L18) calls `SynchOption`

## GetContext

[Line 49](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L49).

- [51](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L51) calls `CheckContext`

## WasModifiedAfterLastSynch

[Line 58](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L58).

- [67](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L67) calls `GetRowLastModifiedOn`
- [68](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L68) calls [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) `IsModifiedAfterLastSynchronizedRecord`
- [73](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L73) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionValue`

## SynchOption

[Line 92](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L92), local.

- [100](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L100) calls `GetMappedRecord`
- [108](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L108) calls `PrepareNewDestination`
- [115](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L115) calls `WasModifiedAfterLastSynch`
- [125](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L125) calls `TransferFields`
- [129](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L129) calls `InsertRecord`
- [133](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L133) calls `ModifyRecord`

## InsertRecord

[Line 138](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L138), local.

- [143](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L143) raises `OnBeforeInsertRecord`
- [147](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L147) calls `InsertCRMOption`
- [152](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L152) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `UpdateOptionMapping`
- [155](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L155) raises `OnAfterInsertRecord`
- [160](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L160) raises `OnAfterInsertOption`

## InsertCRMOption

[Line 165](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L165), local.

- [172](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L172) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetMetadataInfo`
- [173](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L173) calls [Codeunit 7200 CDS Integration Mgt.](https://jonas-paprotka.de/ref/codeunit/7200-cds-integration-mgt/) `InsertOptionSetMetadata`
- [173](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L173) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionValue`

## ModifyRecord

[Line 176](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L176), local.

- [183](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L183) raises `OnBeforeModifyRecord`
- [186](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L186) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `UpdateOptionMapping`
- [187](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L187) raises `OnAfterModifyRecord`
- [194](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L194) calls `ModifyCRMOption`
- [195](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L195) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `UpdateOptionMapping`
- [199](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L199) raises `OnAfterModifyOption`
- [203](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L203) raises `OnErrorWhenModifyingRecord`
- [206](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L206) calls `RemoveTrailingDots`
- [209](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L209) calls `LogSynchError`
- [210](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L210) calls `MarkOptionMappingAsFailed`

## ModifyCRMOption

[Line 216](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L216), local.

- [223](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L223) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetMetadataInfo`
- [224](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L224) calls [Codeunit 7200 CDS Integration Mgt.](https://jonas-paprotka.de/ref/codeunit/7200-cds-integration-mgt/) `UpdateOptionSetMetadata`
- [224](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L224) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionId`
- [224](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L224) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionValue`

## GetMappedRecord

[Line 227](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L227), local.

- [239](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L239) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `LoadCRMOption`
- [245](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L245) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `IsCRMRecordRefMapped`
- [260](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L260) raises `OnDeletionConflictDetected`
- [264](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L264) calls `LogSynchError`
- [265](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L265) calls `MarkOptionMappingAsFailed`
- [270](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L270) calls `PrepareNewDestination`

## PrepareNewDestination

[Line 286](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L286), local.

- [300](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L300) raises `OnPrepareNewDestination`

## LogSynchError

[Line 305](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L305), local.

- [313](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L313) calls [Table 5339 Integration Synch. Job Errors](https://jonas-paprotka.de/ref/table/5339-integration-synch-job-errors/) `LogSynchError`
- [315](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L315) calls [Table 5339 Integration Synch. Job Errors](https://jonas-paprotka.de/ref/table/5339-integration-synch-job-errors/) `LogSynchError`

## TransferFields

[Line 322](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L322), local.

- [324](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L324) raises `OnBeforeTransferRecordFields`
- [326](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L326) calls `TransferField`
- [328](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L328) calls `LogSynchError`
- [330](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L330) calls `RemoveTrailingDots`
- [331](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L331) calls `MarkOptionMappingAsFailed`

## TransferField

[Line 337](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L337), local.

- [348](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L348) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionValue`
- [352](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L352) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionValue`

## MarkOptionMappingAsFailed

[Line 359](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L359).

- [368](https://jonas-paprotka.de/ref/codeunit/5364-int-option-synch-invoke/source/#L368) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `MarkLastSynchAsFailure`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
