Exchange rate is one of the common factor used in D365 F&O used usually when conversion in between Accounting currency-Reporting currency or transnational currency-Accounting currency is required. Purpose of this code is to retrieve current conversion rate configured in our AX for a particular date. public CurrencyExchangeRate CMTExchangeRateCalculator( TransDate transDate,VendCurrencyCode fromCurrency,VendCurrencyCode toCurrency) { ExchangeRateType ExchangeRateType; ExchangeRateCurrencyPair exchangeRateCurrencyPair; real exchRate; if(fromCurrency != toCurrency) { select firstonly exchangeRateCurrencyPair where ...