---
title: "Codeunit 1242 Set Up Curr Exch Rate Service, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/points/
object: https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/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 1242 Set Up Curr Exch Rate Service, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/points/

6 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/Currency/SetUpCurrExchRateService.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 23](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L23), trigger.

- [39](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L39) calls `SetupECBDataExchange`
- [39](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L39) calls `GetECB_URI`

## SetupECBDataExchange

[Line 52](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L52).

- [60](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L60) calls `CreateCurrencyExchangeSetup`
- [65](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L65) calls [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `SetWebServiceURL`
- [68](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L68) calls `CreateExchLineDef`
- [68](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L68) calls `GetECBRepeaterPath`
- [69](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L69) calls [Codeunit 1236 Suggest Col. Definition - XML](https://jonas-paprotka.de/ref/codeunit/1236-suggest-col-definition-xml/) `GenerateDataExchColDef`
- [71](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L71) calls `MapECBDataExch`

## CreateCurrencyExchangeSetup

[Line 76](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L76), local.

- [79](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L79) validates [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `Data Exch. Def Code`
- [80](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L80) validates [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `Code`
- [81](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L81) validates [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `Description`
- [82](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L82) validates [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `Service Provider`
- [83](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L83) validates [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `Terms of Service`
- [84](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L84) writes [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) Insert(true)

## CreateExchLineDef

[Line 96](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L96), local.

- [100](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L100) validates [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) `Data Line Tag`
- [101](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L101) writes [Table 1227 Data Exch. Line Def](https://jonas-paprotka.de/ref/table/1227-data-exch-line-def/) Modify(true)

## CreateExchMappingLine

[Line 104](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L104), local.

- [115](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L115) writes [Table 1223 Data Exch. Column Def](https://jonas-paprotka.de/ref/table/1223-data-exch-column-def/) Insert
- [121](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L121) validates [Table 1223 Data Exch. Column Def](https://jonas-paprotka.de/ref/table/1223-data-exch-column-def/) `Data Type`
- [122](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L122) validates [Table 1223 Data Exch. Column Def](https://jonas-paprotka.de/ref/table/1223-data-exch-column-def/) `Data Format`
- [123](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L123) writes [Table 1223 Data Exch. Column Def](https://jonas-paprotka.de/ref/table/1223-data-exch-column-def/) Modify(true)
- [126](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L126) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Data Exch. Def Code`
- [127](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L127) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Data Exch. Line Def Code`
- [128](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L128) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Table ID`
- [129](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L129) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Column No.`
- [130](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L130) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Field ID`
- [131](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L131) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Multiplier`
- [132](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L132) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Transformation Rule`
- [133](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L133) validates [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) `Default Value`
- [134](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L134) writes [Table 1225 Data Exch. Field Mapping](https://jonas-paprotka.de/ref/table/1225-data-exch-field-mapping/) Insert(true)

## MapECBDataExch

[Line 137](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L137), local.

- [141](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L141) calls `GetMappingTable`
- [143](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L143) calls `CreateExchMappingLine`
- [144](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L144) calls `GetECBCurrencyCodeXMLElement`
- [144](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L144) calls `GetCurrencyCodeFieldNo`
- [146](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L146) calls `CreateExchMappingLine`
- [147](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L147) calls `GetECBStartingDateXMLElement`
- [147](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L147) calls `GetStartingDateFieldNo`
- [150](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L150) calls `CreateExchMappingLine`
- [151](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L151) calls `GetECBExchRateXMLElement`
- [151](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L151) calls `GetExchRateAmtFieldNo`
- [153](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L153) calls `CreateExchMappingLine`
- [154](https://jonas-paprotka.de/ref/codeunit/1242-set-up-curr-exch-rate-service/source/#L154) calls `GetRelationalExchRateFieldNo`

## Source

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

JOP-AL, 2026-11-20.
