Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Session date in the SSRS report

(0) ShareShare
ReportReport
Posted on by 578

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. 

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Session date in the SSRS report

    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

  • Suggested answer
    D365  beginner Profile Picture
    578 on at
    RE: Session date in the SSRS report

    Hi Sergei,

    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

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: Session date in the SSRS report

    Hi AX Beginner,

    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.

  • D365  beginner Profile Picture
    578 on at
    RE: Session date in the SSRS report

    Hi Sergei,

    Yes, Exactly.

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: Session date in the SSRS report

    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?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans