You need to sign in to do that
Don't have an account?

Login History
hi,
Does the salesforce store the login histroy of a user??
For example, when i log in, i need to see what was the last time i logged in. Although a method is provided with the User class getLastLoginDate(). But wen i log in, my last login date changes to the current loggin time. In short, i want to access my previous loggin date/time.
kindly help me in this regrd.
thanks
Omar Altaf
Does the salesforce store the login histroy of a user??
For example, when i log in, i need to see what was the last time i logged in. Although a method is provided with the User class getLastLoginDate(). But wen i log in, my last login date changes to the current loggin time. In short, i want to access my previous loggin date/time.
kindly help me in this regrd.
thanks
Omar Altaf
Hi,
I want to ask a question regarding this matter. Is it possible right now for the API 15 to get the login history from API ?
regards,
edwin
For a particular user, you need to mention userID in SOQL query:
In case you want to get login details of current user then use following line instead.
for detailed documentation, navigate to following page:
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_loginhistory.htm