October 14, 2021

LastViewedDate in Salesforce

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'


No comments:

Post a Comment