Tracking Viewed Record BY - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Andrea SloanAndrea Sloan 

Tracking Viewed Record BY

I've downloaded a new application "Training Material" which allows posting of different Word Docas or videos for users to download or to view in their browser
Users will have read only access to this object as they have no need to modify what our trainer posts in terms of the materials. I need to track a way of knowing the names of the users that have entered the record where a specific piece of training material is posted (through attachment or link). I don't see any "viewed  by" type of field . The only one I'm familiar with is the "last Viewed By" which is not useful. Does anyone have any creative way of being able to to track which users viewed which records?
Pritam ShekhawatPritam Shekhawat
Hi Andrea,
               I think We can achieve this using apex controller and visualforce page and add a custom field so it will display how many times user access that record and who last viewed this.
Take a look here for how this is possible Last viewed by and Page view count for salesforce lead records (http://gtr.net/last-viewed-by-and-page-view-count-for-salesforce-lead-records/)
Correct me if am wrong here . :)
Andrea SloanAndrea Sloan
Hi Pritam:

The question is am I able to see the list of ALL the users who viewed my record and not just the last one?
Andrea SloanAndrea Sloan
Hi Pritam:

is it possible to see the list of all the viewers and not just the last one? If it's just the last one, that would not help.
Pritam ShekhawatPritam Shekhawat
@Andrea, As i suggests it can be done using apex controller and visualforce page. Here if you want all viewers name for record then either you can modify your controller according to your requirements. Or you can simply create a formula field here which will be updated from Last_Viewed_By__c- text everytime and add all value . Like User 1, User2, User3 . So it will give you complete users details who viewed the records. After that you can use this according to your needs. I didn't try yet for all users. But if you want then once's i got free time on weekend then i will try and let you know about it.
Hope it helps :)
Thanks,
Pritam Shekhawat
Andrea SloanAndrea Sloan
Hi Pritam: If you’re able to show me how that would be great as I really don’t know how to user APEX or VisualForce. I would need you to walk me through the steps if it’s not too much trouble. Thank you for your help! Andrea
Pritam ShekhawatPritam Shekhawat
@Andrea, Am going out side of city for two days. Once's am back i will sure try your requirement in my developer org and let you know. IF you are in hurry then let me know?