Working with Recently Viewed Information
The examples in this section use REST API Query and Recently Viewed resources to programmatically retrieve and update recently viewed record information.
-
Use the Recently Viewed Items resource to get a list of recently viewed records.
-
Mark Records as Recently Viewed
To mark a record as recently viewed using REST API, use the Query resource with a
FOR VIEWorFOR REFERENCEclause. Use SOQL to mark records as recently viewed to ensure that information such as the date and time the record was viewed is correctly set.