+ Start a Discussion

How can I query the LoginHistory object via SOQL and Apex?

It is sort of available via the user interface, and sort of available via API calls (after v21), and sort of available via reports - but I want to actually query the object directly and drive functionality based on that. Is there any way to do this?

If not, how can I most effectively create and populate a parallel object that allows me to drive this functionality?



Jia HuJia Hu
User Apex to query the LoginHistory object, then you can get everyhing you want.
Do you have any special request?