Codeunit 1281 Update Currency Exchange Rates

Base Application, Microsoft.Finance.Currency

Source AL, 272 lines

src/Layers/W1/BaseApp/Finance/Currency/UpdateCurrencyExchangeRates.Codeunit.allines 25 to 40 of 272, Copyright (c) Microsoft Corporation. MIT

codeunit 1281 "Update Currency Exchange Rates"{    Permissions = TableData "Data Exch." = rimd;    trigger OnRun()    begin        SyncCurrencyExchangeRates();    end;    var        TempBlobResponse: Codeunit "Temp Blob";        HttpWebRequestMgt: Codeunit "Http Web Request Mgt.";        NoSyncCurrencyExchangeRatesSetupErr: Label 'There are no active Currency Exchange Rate Sync. Setup records.';        MissingExchRateNotificationNameTxt: Label 'Missing Exchange Rates';        MissingExchRateNotificationDescriptionTxt: Label 'Show warning to enter exchange rates when a new currency is created.';        NotificationActionDisableTxt: Label 'Don''t show me again';

All 272 lines

Events 3 in 29

[IntegrationEvent] OnBeforeSyncCurrencyExchangeRatesLoop(var CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup")17-29
[IntegrationEvent] OnBeforeGetCurrencyExchangeData(var CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup"; var ResponseInStream: InStream; var SourceName: Text; var Handled: Boolean; var TempBlobResponse: Codeunit "Temp Blob")new in 27
[IntegrationEvent] OnSyncCurrencyExchangeRatesOnBeforeFindCurrExchRateUpdateSetup(var CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup")new in 28

All 4 events in 17-29

Public procedures 8 in 29

UpdateCurrencyExchangeRates(CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup"; CurrencyExchRatesDataInStream: InStream; SourceName: Text)17-29
GenerateTempDataFromService(var TempCurrencyExchangeRate: Record "Currency Exchange Rate" temporary; CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup")17-29
OpenCurrencyExchangeRatesPageFromNotification(Notification: Notification)17-29
DisableMissingExchangeRatesNotification(Notification: Notification)17-29
ShowMissingExchangeRatesNotification(CurrencyCode: Code[10])17-29
ExchangeRatesForCurrencyExist(Date: Date; CurrencyCode: Code[10]): Boolean17-29

All 8 procedures

Changes 1 in 28

List17181920212223242526272829
Events21
[IntegrationEvent] OnSyncCurrencyExchangeRatesOnBeforeFindCurrExchRateUpdateSetup(var CurrExchRateUpdateSetup: Record "Curr. Exch. Rate Update Setup")new in 28
added

All 3 changes in 17-29