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

Printing Window userId instead of AX userID in SSRS report.

(0) ShareShare
ReportReport
Posted on by 672

Hi All,

I'm working in a SSRS report where want to print the current UserId who have generated the report, for this I have used "UserID" function in "Build-in fields" in SSRS report but this function is giving window user id instead of Ax user id.

How can I implement this as without creating any additional field of userId in Temptable and can call with curUserId. Is there is any other function or other way to call UserId??

Please help me to resolve tis issue.

Thanks in advance!!

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,452 Most Valuable Professional on at

    You'll find user's details in UserInfo table.

  • D365FO Avatar Profile Picture
    672 on at

    Hi Martin,

    Can I call it through any function in SSRS report?

  • Martin Dráb Profile Picture
    239,452 Most Valuable Professional on at

    The primary source of data is tables, not functions. You can't expect to have a function for each field in F&O database. Instead, fetch the data from database table. For example, if the report is based on an RDP class, you can add an extra field for the ID and populate it in amn extensiin of the RDP class. Then you'll use this new field in the same way as all other fields.

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    I think as Martin suggested, you might not be able to get the current userid using SSRS report function as the AX user id is saved in UserInfo table, hence you need to have your custom X++ code to populate the current user id into the datasource as a field and then display that field.

    Regards,

    Anh Ong

  • D365FO Avatar Profile Picture
    672 on at

    Hi Martin and Ong Tuan,

    Can I add a hidden parameter which passes curUserId wile the report is generating?

    Is it possible?

  • Martin Dráb Profile Picture
    239,452 Most Valuable Professional on at

    Yes, it is. Just note that curUserId() returns AX user ID, which you don't want.

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 April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 622

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans