Skip to main content Stream TDX Bengaluru on Salesforce+. Start learning the critical skills you need to build and deploy trusted autonomous agents with Agentforce. Register for free.
How can I get the current Salesforce User ID in an Apex class?

Any help is appreciated!

Chris

7 Antworten
  1. 7. Aug. 2008, 15:16
    You can get the current user id like this.

    UserInfo.getUserId() which returns the user id of the current user.

Ladevorgang läuft
0/9000