---
title: "Codeunit 5361 Int. Rec. Couple Invoke, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/points/
object: https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-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 5361 Int. Rec. Couple Invoke, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/points/

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

## OnRun

[Line 12](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L12), trigger.

- [14](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L14) calls `CheckContext`
- [15](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L15) calls `CoupleRecord`

## GetContext

[Line 52](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L52).

- [54](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L54) calls `CheckContext`

## CoupleRecord

[Line 70](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L70), local.

- [84](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L84) calls [Codeunit 5345 Integration Rec. Synch. Invoke](https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/) `FindCoupledRecord`
- [86](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L86) calls [Codeunit 5345 Integration Rec. Synch. Invoke](https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/) `FindCoupledRecord`
- [93](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L93) raises `OnBeforeCoupleRecord`
- [95](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L95) calls `AddIntegrationRecordCoupling`
- [97](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L97) calls [Codeunit 5345 Integration Rec. Synch. Invoke](https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/) `FindCoupledRecord`
- [99](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L99) calls [Codeunit 5345 Integration Rec. Synch. Invoke](https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/) `FindCoupledRecord`
- [107](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L107) raises `OnErrorWhenCouplingRecord`
- [108](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L108) calls `LogSynchError`
- [110](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L110) calls `RemoveTrailingDots`
- [114](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L114) raises `OnAfterCoupleRecord`

## AddIntegrationRecordCoupling

[Line 122](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L122), local.

- [131](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L131) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `IsIntegrationRecordChild`
- [138](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L138) calls [Codeunit 5338 Integration Record Management](https://jonas-paprotka.de/ref/codeunit/5338-integration-record-management/) `UpdateIntegrationTableCoupling`

## LogSynchError

[Line 141](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L141), local.

- [152](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L152) calls [Table 5339 Integration Synch. Job Errors](https://jonas-paprotka.de/ref/table/5339-integration-synch-job-errors/) `LogSynchError`
- [154](https://jonas-paprotka.de/ref/codeunit/5361-int-rec-couple-invoke/source/#L154) calls [Table 5339 Integration Synch. Job Errors](https://jonas-paprotka.de/ref/table/5339-integration-synch-job-errors/) `LogSynchError`

## Source

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

JOP-AL, 2026-11-20.
