Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
HI All,
Id userId = UserInfo.getUserId(); // This will return userId of Current User
You can go through the salesforce document for the same:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm
Thanks,
Devendra