---
title: "Codeunit 1281 Update Currency Exchange Rates, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/points/
object: https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/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 1281 Update Currency Exchange Rates, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/points/

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

## OnRun

[Line 29](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L29), trigger.

- [31](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L31) calls `SyncCurrencyExchangeRates`

## SyncCurrencyExchangeRates

[Line 48](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L48), local.

- [55](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L55) raises `OnSyncCurrencyExchangeRatesOnBeforeFindCurrExchRateUpdateSetup`
- [59](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L59) raises `OnBeforeSyncCurrencyExchangeRatesLoop`
- [60](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L60) calls `GetCurrencyExchangeData`
- [61](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L61) calls `UpdateCurrencyExchangeRates`
- [62](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L62) calls `LogTelemetryWhenExchangeRateUpdated`

## UpdateCurrencyExchangeRates

[Line 69](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L69).

- [75](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L75) calls `CreateDataExchange`
- [76](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L76) calls [Table 1222 Data Exch. Def](https://jonas-paprotka.de/ref/table/1222-data-exch-def/) `ProcessDataExchange`
- [77](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L77) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Delete(true)

## GetCurrencyExchangeData

[Line 80](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L80), local.

- [86](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L86) raises `OnBeforeGetCurrencyExchangeData`
- [87](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L87) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [91](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L91) calls `ExecuteWebServiceRequest`
- [92](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L92) calls [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `GetWebServiceURL`

## CreateDataExchange

[Line 96](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L96), local.

- [104](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L104) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [106](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L106) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `InsertRec`
- [108](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L108) calls [Codeunit 1237 Get Json Structure](https://jonas-paprotka.de/ref/codeunit/1237-get-json-structure/) `JsonToXML`
- [109](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L109) calls [Codeunit 1237 Get Json Structure](https://jonas-paprotka.de/ref/codeunit/1237-get-json-structure/) `JsonToXMLCreateDefaultRoot`
- [110](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L110) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Modify(true)
- [112](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L112) calls [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) `InsertRec`

## ExecuteWebServiceRequest

[Line 117](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L117), local.

- [123](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L123) calls [Table 1650 Curr. Exch. Rate Update Setup](https://jonas-paprotka.de/ref/table/1650-curr-exch-rate-update-setup/) `GetWebServiceURL`
- [124](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L124) calls [Codeunit 1297 Http Web Request Mgt.](https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/) `Initialize`
- [125](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L125) calls [Codeunit 1297 Http Web Request Mgt.](https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/) `SetReturnType`
- [128](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L128) calls [Codeunit 1297 Http Web Request Mgt.](https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/) `DisableUI`
- [130](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L130) calls [Codeunit 1297 Http Web Request Mgt.](https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/) `SetTraceLogEnabled`
- [132](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L132) calls [Codeunit 1297 Http Web Request Mgt.](https://jonas-paprotka.de/ref/codeunit/1297-http-web-request-mgt/) `GetResponse`
- [133](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L133) calls `ShowHttpError`

## GenerateTempDataFromService

[Line 136](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L136).

- [144](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L144) calls `GetCurrencyExchangeData`
- [146](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L146) calls `CreateDataExchange`
- [148](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L148) calls [Codeunit 1280 Map Currency Exchange Rate](https://jonas-paprotka.de/ref/codeunit/1280-map-currency-exchange-rate/) `MapCurrencyExchangeRates`
- [149](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L149) writes [Table 1220 Data Exch.](https://jonas-paprotka.de/ref/table/1220-data-exch/) Delete(true)

## ShowHttpError

[Line 152](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L152), local.

- [162](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L162) calls [Codeunit 1299 Web Request Helper](https://jonas-paprotka.de/ref/codeunit/1299-web-request-helper/) `GetWebResponseError`
- [164](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L164) calls [Table 710 Activity Log](https://jonas-paprotka.de/ref/table/710-activity-log/) `LogActivity`
- [173](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L173) calls [Codeunit 6224 XML DOM Management](https://jonas-paprotka.de/ref/codeunit/6224-xml-dom-management/) `LoadXMLNodeFromInStream`

## OpenCurrencyExchangeRatesPageFromNotification

[Line 190](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L190).

- [197](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L197) runs [Page 483 Currency Exchange Rates](https://jonas-paprotka.de/ref/page/483-currency-exchange-rates/)

## DisableMissingExchangeRatesNotification

[Line 200](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L200).

- [204](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L204) calls [Table 1518 My Notifications](https://jonas-paprotka.de/ref/table/1518-my-notifications/) `Disable`
- [205](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L205) calls [Table 1518 My Notifications](https://jonas-paprotka.de/ref/table/1518-my-notifications/) `InsertDefault`

## ShowMissingExchangeRatesNotification

[Line 212](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L212).

- [217](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L217) calls [Table 1518 My Notifications](https://jonas-paprotka.de/ref/table/1518-my-notifications/) `IsEnabled`
- [217](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L217) calls `GetMissingExchangeRatesNotificationID`
- [219](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L219) calls `GetMissingExchangeRatesNotificationID`

## OpenExchangeRatesPage

[Line 238](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L238).

- [243](https://jonas-paprotka.de/ref/codeunit/1281-update-currency-exchange-rates/source/#L243) runs [Page 483 Currency Exchange Rates](https://jonas-paprotka.de/ref/page/483-currency-exchange-rates/)

## Source

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

JOP-AL, 2026-11-20.
