Questions tagged [recentlyviewed]

The tag has no usage guidance.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
883 views

Query RecentlyViewed return different result from Recent Item

I run this query to get RecentItem data, SELECT Id, Name FROM RecentlyViewed ORDER BY LastViewedDate DESC LIMIT 10 But I m login as same user,open SFDC Home in other tab and my customize Home in ...
2
votes
0answers
58 views

Recording When A Record Was Viewed / Visited?

I'm not finding any luck online. Does anyone know of a way to effectively (considering we're talking about Salesforce within a controlled Corporate environment) track when a record is VISITED and by ...
1
vote
0answers
72 views

RecentlyViewed causes non-selective query error when run from a screen flow

I have a screen flow that calls an invocable apex method containing the query: List<RecentlyViewed> viewedRecords = [SELECT Id , Name , Type , LastViewedDate FROM RecentlyViewed WHERE ...
1
vote
0answers
215 views

Can't fetch recently viewed list view information for custom objects

I am trying to fetch existing list views for a custom object, I can find 'Recently viewed' list filter in custom object home page or in its standard tab. But when I query it by SOQL SELECT id, Name, ...
1
vote
1answer
229 views

ERROR on Recently Viewed: INVALID_TYPE: record type xxxxxx doesn't belong to xxObjectxxx

Recently switched over to Lightning from Classic. Got this error in testing but never able to replicate it. Assumed it was an issue during development but now a user is getting it in Production when ...
0
votes
1answer
56 views

Hide 'New' Button on Recently View from Opportunity Page

Is it possible to hide the New (Standard Record creation button) from the Recently view of the Opportunity page? Else is there any way we can customize the New button (Only Recently view not Other ...
0
votes
0answers
56 views

Assign RecentlyViewed SOQL query to List

I'm trying to query the recentlyviewed records for a user in a login flow. When I run the following query I receive this error: "Compile Error: Illegal assignment from List<RecentlyViewed> to ...
0
votes
0answers
30 views

RecentlyViewed not working for Account for portal user

recentlviewed not working for Account for portal user listRecent = [SELECT Id, Name,Type FROM RecentlyViewed WHERE type IN('Contact','Account','Opportunity','Lead') and LastViewedDate !=null ...