web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

creating new exchange rate currency bank NBP as we have OANDA in d365fo

(0) ShareShare
ReportReport
Posted on by

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

{

}

in the above code we have 

ExchangeRateProvider::OANDA, but i wanna create for NBP, so what modifications are required

And how to proceed so that I can get NBP instead of OANDA on clicking new in the form...

can anyone please help out

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    What does NBP stand for? Is that the Polish central bank or does it represent a new currency code you want to create or...?

    Would be great if you could provide us some additional information.

    Best regards,

    Ludwig

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    As far as I know, ExportMetadataAttribute isn't needed anymore, therefore simply remove it. If you want it, you'll have to extend ExchangeRateProvider enum and add your new value there.

    When your provider is correctly implemented, it'll become available in "Configure exchange rates providers" form.

  • Community Member Profile Picture
    on at

    https://api.nbp.pl/en.html

    u can please refer the above link

    for NBP

    Like how we have OANDA in standard UI ,the similar way we wanna create NBP

    Its basically a new currency code

  • Community Member Profile Picture
    on at

    I tried extending enum and tried adding value but it doesn't work..

    can u please send me code related to it, so that I can implement

  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    I'm sorry, but "it doesn't work" isn't a problem description we can work with. You would have to explain your problem properly.

    But firstly, why are you doing it all? I told you it's not needed. You can simple remove the whole ExportMetadataAttribute (not the ExportAttribute; it must be there).

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi nil,

    I once did that import from the polish central bank with Flow.

    dynamicsax-fico.com/.../

    Maybe that's an alternative option for you?

    Best regards,

    Ludwig

  • Community Member Profile Picture
    on at

    Can you please send me exact code/procedure,through which I can get value "NBP" currency code in the form .

  • Community Member Profile Picture
    on at

    And NBP is a bank,

    like how we have oanda and others in the standard ,the similar way I wanna add  NBP in standards

  • Suggested answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    Declare the class like this:

    [ExportAttribute('Microsoft.Dynamics.ApplicationSuite.FinancialManagement.Currency.Framework.IExchangeRateProvider')] 
    class XyzExchangeRateProviderNbp implements IExchangeRateProvider

    and implement all methods defined by the interface. The compiler will tell you what's missing. Also, I strongly recommend that you follow the documentation page written for exactly this purpose: Create exchange rate providers. It explains the methods and other related things.

    I've recently written a similar exchange rate provider and it works fine.

    By the way, you surely don't want "to get value "NBP" currency code". A currency code identifies a currency, such as EUR or USD. NBP is a bank, not a currency. What  you want create is an exchange rate provider, not a new currency.

  • Community Member Profile Picture
    on at

    Yes yes NBP is a provider not currency code and I wanna implement NBP in standards like how we have OANDA!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans