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

Code to find worker for current system user

(0) ShareShare
ReportReport
Posted on by 415

Hi All,

How can i get system service account details with X++ in ax2012 r3.

Can anybody guide me.

Regards,

Srinivas

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    What kind of details are you looking for? And why?

  • vaasu Profile Picture
    415 on at

    I want assign the Approver in each Ledger journal line , Who are the workers relation with current System User.

  • Suggested answer
    Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    That's easy - simple call HcmWorker::userId2Worker(curUserId()).

    By the way, let me rename your thread so it's a bit clearer.

  • vaasu Profile Picture
    415 on at

    But with this i am getting current login Worker id , But i want System Service Accounts.

    We configure one user id there, the user Id value and corresponding relation worker.

  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    My apologies. What is your definition of "current system user" and "System Service Accounts"?

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

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=text+design+generator+ai++7hd" - Nested quantifier +.