function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MLamb2005MLamb2005 

Can Apex access the Recent Items list?

Does anyone know if you can access the Recent Items list via Apex code in order to grab the ID of the last viewed item?

 

Thanks,
Matt

aalbertaalbert
I am not aware of anyway to directly access the Recently Items list. Depending on the requirement, you can query for specific records recently updated by the logged in user. But you would have to execute a query for each object type which might not be ideal.