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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Use different exchange rate type for foreign currency revaluation in AR/AP

(0) ShareShare
ReportReport
Posted on by 577

As I know, foreign currency revaluation in AR/AP gets default exchange rate type from ledger. How can I get different exchange rate type for calculation by code?

I have the same question (0)
  • Suggested answer
    Ramit Paul Profile Picture
    22,803 Most Valuable Professional on at

    Hi,

    You are right, its come from ledger setup- currency exchange rate type.

    Can you give us, what is the meaning of CODE here?

  • Tony Mok Profile Picture
    577 on at

    HI Ramit Paul,

    How can I add code to class to choose different exchange rate type for calculation?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Tony,

    Not sure what you mean by different. We get the default exchange rate type using this -

    Ledger::find(Ledger::current()).DefaultExchangeRateType

  • Tony Mok Profile Picture
    577 on at

    Hi Gunjan Bhattacharyya,

    I mean how to use different set instead of default exchange rate type from ledger.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    You can query ExchangeRateType table. Maybe something like this-

    ExchangeRateType    rateType;
    
    select firstOnly rateType
        where rateType.RecId != Ledger::find(Ledger::current()).DefaultExchangeRateType;

  • Tony Mok Profile Picture
    577 on at

    Hi Gunjan Bhattacharyya,

    I know how to select different exchange rate type , but I don't know how to use my exchange rate type for foreign currency revaluation.

  • Suggested answer
    Ramit Paul Profile Picture
    22,803 Most Valuable Professional on at

    Hi Tony,

    Would you mind to share the exact scenario you want to achieve?

  • Tony Mok Profile Picture
    577 on at

    Hi Ramit Paul,

    My client wants to select different rate only for foreign currency revaluation, so we cannot use default exchange rate type from ledger. We suggest another exchange rate type for foreign currency revaluation.

  • Suggested answer
    Ramit Paul Profile Picture
    22,803 Most Valuable Professional on at

    Hi,

    This is not as per design.

    The possible way is you can have exchange rate type in accounting currency and reporting currency exchange rate type.

    Further more, you can have different exchange rate type in MAIN ACCOUNT level.

  • Tony Mok Profile Picture
    577 on at

    Hi Ramit Paul,

    For AP/AR, MAIN ACCOUNT is not related. Isn't it?

    The possible way is you can have exchange rate type in accounting currency and reporting currency exchange rate type. What does it mean?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans