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 :
Microsoft Dynamics AX (Archived)

At which code place does AX set the exchange rates?

(0) ShareShare
ReportReport
Posted on by

Hi all,

i want to customize the code where the standard AX sets the exchange rate in a journal. 

Regardless of whether the journal is created manually or automatically via AIF.

I don't find the code to customize it, can someone help?

Best Regards,

James

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If you know which field it is being set on, why don't you just build Cross-references and use that to find the code?

    msdn.microsoft.com/.../aa626961.aspx

    If you are talking about LedgerJournalTrans.ExchRate, then that field value depends on many factors, like what type of journal is it created from, so it is very situational and we cannot give you a concrete answer. But knowing the business process yourself, it should be a couple of minutes to figure out which one is applicable in your case.

    Yet better, you have the Debugger at your disposal to see when does the value change, then you can just step back in code to see what is the source of that.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    One hint is that LedgerJournalEngine.initValue pulls the exchange rate from the header of the journal, which is one of the universal places where it is set, but there are like 50+ more.

  • Community Member Profile Picture
    on at

    Hi Vilmos,

    thanks for your advice. I've got this idea yesterday and started the creation of cross-references yesterday afternoon. In the night from yesterday to today it must be finished because today i didn't see any loading window, but i can't use cross-references... don't know why..

    The next possibility to run the creation again is today in the late afternoon and then i don't know if it works or not..

    I tried it like:

    Tool->Cross-reference->Periodic-Update

    In the window which is opening then i checked "delete all", "update all" and "Update data model".

    That's the reason, why i posted my question here..

    Best Regards

    James

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    That is not a good way, it is better to run xRef as a batch like this, will take much less time (with a good environment using SSD it is about 2 hours):

    community.dynamics.com/.../217341

  • Community Member Profile Picture
    on at

    Hi Vilmos,

    will try your solution to get the cross references today afternoon and will give feedback tomorrow morning.

    Thanks :)

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans