Notifications
Announcements
No record found.
Hi Experts,
I have a report (SSRS) where I need to display AX session date. I was simply trying the function Table.MyField = SystemDateGet(); in the DP class but it always takes the local machine's date same like function today(). If I try to print systemDateGet() in an AOT job, it shows AX session date perfectly. what could be the reason ?
Thanks in advance.
Hi AX Beginner,
Did I understand correctly that you change session date and time before executing the report and but systemDateGet still shows your local machine date time?
Hi Sergei,
Yes, Exactly.
I think that report itself (data provider class call) is executed in new session (see reporting architecture article) and for this report session session date is not changed.
docs.microsoft.com/.../reporting-architecture
As workaround, you can create new field on contract class and fill it from controller class with session date and time and use it in provider class.
I think you are right, I solved it as you suggested. (Added as a parameter and passed it to DP class using controller class)
Thanks
Good morning AX Beginner,
If your question has been answered and your problem been resolved then please be so kind and verify the answer.
Many thanks for the help and best regards,
Ludwig
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader