You need to sign in to do that
Don't have an account?
Abc234
How to track access by object?
We are trying to find ways to track adoption/usage of our application on force.com. Is there anyway to access frequency of access of custom objects by user?
Thanks in advance
Directly speaking, salesforce.com does not trigger any code when a record is viewed, so there is no way to track access using standard system features. You could, however, create a small visualforce page that tracks accesses. Consider the following:
Custom object definition:
Page (named whatever you like):
Controller:
Then, simply add this page to each of your page layouts (you can use a height of zero so it appears invisible). Whenever a record is loaded, it will add a tracking record. You can then run reports on this information. Note that this will use a ton of database space, so you'll need to clear out this data periodically. You can track record updates by simply using a trigger to record this "viewing history" data.
A more advanced technique could also store this data as a JSON feed in the user's record as a long text area, but this reduces reporting capabilities (you'd have to actually write a custom visualforce page).