function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Getting Logged in and Logged out time in Salesforce



How to get logged in time and logged out time in salesforce and store the same time in salesforce custom object.



R. Arunraj

Chamil MadusankaChamil Madusanka



Login history feature is available in  salesforce.



You name --> Setup --> Manage User-->Login History


If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.


LoginHistory is a newly added API object that you can query from either the web services API or Apex.