1 min read

Changes in defining exchange rate providers for Microsoft Dynamics 365 for Finance and Operations version 8.0

If you migrate to Microsoft Dynamics 365 for Finance and Operations version 8.0 from 7.1,7.2,7.3 and you have a custom Exchange rate provider defined keep in mind that there are some small differences to be aware off when migrating.

They mostly affect the class that implements the IExchangeRateProvider interface.

In Dynamics 365 for Finance and Operations versions: 7.1,7.2,7.3:

using Microsoft.Dynamics.ApplicationSuite.FinancialManagement.Currency.Framework;
using Microsoft.Dynamics.Currency.Instrumentation;
using System.Collections;
/// <summary>
/// The <c>ExchangeRateProviderOanda</c> class is an exchange rate provider for OANDA.
/// </summary>
class ExchangeRateProviderOanda implements IExchangeRateProvider
{
}  

In Dynamics 365 for Finance and Operations version 8.0:

using Microsoft.Dynamics.ApplicationSuite.FinancialManagement.Currency.Framework;
using Microsoft.Dynamics.Currency.Instrumentation;
using System.Collections;
using System.ComponentModel.Composition;
/// <summary>
/// The <c>ExchangeRateProviderOanda</c> class is an exchange rate provider for OANDA.
/// </summary>
[ExportMetadataAttribute(enumStr(ExchangeRateProvider), 
ExchangeRateProvider::OANDA), ExportAttribute('Microsoft.Dynamics.ApplicationSuite.FinancialManagement.Currency.Framework.IExchangeRateProvider')]
class ExchangeRateProviderOanda implements IExchangeRateProvider
{
}

Also, make sure that any provider you have created will also be available as an extension to ExchangeRateProvider enum .

For more details please see:

Create exchange rate providers - 7.1,7.2,7.3

Create exchange rate providers in Microsoft Dynamics 365 for Finance and Operations version 8.0