How to get the current User ID in an Apex class?

UserInfo.getUserId() is used to get the current User ID in an Apex class.

String Uid = UserInfo.getUserId();

No comments:

Post a Comment