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

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,797 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,797 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,797 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

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 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans