FavoritDeveloper Forums User (Inactive) (Salesforce Developer Forums) fragte in #Apex7. Aug. 2008, 15:03How to get the current User ID in a Apex classHow can I get the current Salesforce User ID in an Apex class?Any help is appreciated!Chris7 AntwortenSortierenNach Datum sortierenNach "Am hilfreichsten" sortierenNach Datum sortierenMehr Kommentare laden...Akzeptierte AntwortSrini P (Testit)7. Aug. 2008, 15:16You can get the current user id like this.UserInfo.getUserId() which returns the user id of the current user.Kommentar hinzufügenAntwort schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
Akzeptierte AntwortSrini P (Testit)7. Aug. 2008, 15:16You can get the current user id like this.UserInfo.getUserId() which returns the user id of the current user.