LastViewedDate in Salesforce

Note:
This field is not available in KnowledgeArticle entity.
 
LastViewedDate is a date time field.
To update this when SOQL retrieve the field, use FOR VIEW Clause.
 
Sample SOQL:
SELECT Name, CreatedDate, LastModifiedDate, LastViewedDate FROM Account WHERE Id = ‘0015f000007xBkYAAU’
Output:
 

Leave a Reply