Questions tagged [recentlyviewed]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

Chatter Tagging and Recently Viewed

According to this documentation, recently viewed items can be tagged in a Chatter post. And it works as described - if I've recently viewed something, I can tag it. The problem is that we'd like to be ...
Jeff's user avatar
  • 133
0 votes
0 answers
128 views

Is it possible to filter the Recently Viewed object list view by record type so it can be inline edited

It is my understanding that other than customizing the fields that can be displayed in the Recently Viewed list views, we cannot add a record type filter so that we can inline edit from that list view ...
Nicole Perry's user avatar
0 votes
0 answers
179 views

How to get Last viewed Article In Experience Cloud? Why recently viewed shows related records?

Since there's no standard component which displays Recently viewed Articles , i've used this SOQL : SELECT Id, Name,LastViewedDate , LastReferencedDate FROM RecentlyViewed WHERE Type = 'Knowledge__ka' ...
user avatar
0 votes
0 answers
64 views

How to empty recent list for an object

I have a user who uses the recent sales invoice list for sending emails. The process she uses is: View sales invoice Click on billing contact to display the contact Select Activity related list ...
Jerry Welliver's user avatar
1 vote
0 answers
176 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 ...
Ken K's user avatar
  • 33
0 votes
1 answer
263 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 ...
Spande's user avatar
  • 61
1 vote
0 answers
487 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, ...
adnan_aust's user avatar
0 votes
0 answers
111 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 ...
user82573's user avatar
0 votes
0 answers
34 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 ...
shilpa's user avatar
  • 85
1 vote
1 answer
338 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 ...
BillyB's user avatar
  • 43
1 vote
1 answer
33 views

Is it possible to get recordType from RecentlyViewed SOQL?

Is this possible? SELECT Name FROM RecentlyViewed WHERE Type = 'foo' and Type.RecordType.Name = 'bar' If yes, how should I go about it?
Ferdy Reyes's user avatar
0 votes
1 answer
1k views

Recently Viewed list filter for custom objects

Why salesforce does not show Recently Viewed List filter for Custom objects in Salesforce classic? Is there anyway we can create list filter for Recently View records. I cannot find LastViewedDate ...
SFDCcoder's user avatar
5 votes
1 answer
256 views

RecentlyViewed data leakage in unit tests

I have some code that queries RecentlyViewed and needed to be unit tested. I noticed a failure today because more records are turning up than expected. It turns out that if you query RecentlyViewed ...
Charles T's user avatar
  • 10.9k
2 votes
1 answer
885 views

Is it possible to schedule a class to run as the system, instead of the current user?

Context: I have a class that is scheduled to run in an hourly basis, and it unfortunately updates a few dozens of records when it is run. As a result, I get these records on my "recent viewed" list, ...
Renato Oliveira's user avatar
1 vote
1 answer
366 views

Entitlement lookup popup window not showing recently viewed anymore

Previously, when looking up an Entitlement from a Case, the recently viewed Entitlements would show up. Now, even users who have view all accounts and entitlements are not having this functionality. ...
brezotom's user avatar
  • 1,047
2 votes
0 answers
74 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 ...
AMM's user avatar
  • 4,664
2 votes
1 answer
1k views

Testing RecentlyViewed object records

I've got an Apex class with simple method returning recently viewed records using 'RecentlyViewed' object type. The issue is with inserting test data for unit tests because LastViewedDate field is not ...
fabtosz's user avatar
  • 181
2 votes
1 answer
2k views

Show all the records instead of recently viewed records

On Clicking Look up field,it will show recently viewed records.But is it possible to show all the records which are satisfying the filter criteria,instead of showing recently viewed records.
devsfdc's user avatar
  • 441
3 votes
2 answers
165 views

View override and Recent Items list

I noticed when I load a record for an object that has its View overridden with a Visualforce page, it does not put this record into the "Recently Viewed" list. Is there any way to put this record ...
Ray Dehler's user avatar
  • 1,723
3 votes
1 answer
1k 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 ...
unidha's user avatar
  • 2,532