I am trying to understand how can we know our user's activity each day on Salesforce. The aim is to know how much time each user spend in Salesforce each day, where the triggers are login at morning, and logout at evening. We have the event monitoring app and the event log files - so the data exists.



Use EventLogFile object, Please read the doc, It supports SOAP and REST API.

Once you receive the data, check the value of EventType It should contain log files as per the document.

Another Doc EventLogFile, which is supported SOQL, please go through with this, this ma help.

  • Doesn't help with the "logout" concept... I wonder if there is any record of a "logout" event (I suspect not) – Phil W Mar 11 '20 at 14:46
  • @PhilW, Yeah you are right, LoginHistory object does not give logout detail, I update the answer as I found some document about EventLogFile as a part of a release 15 – Sarvesh Mar 11 '20 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.