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
Tim StinsonTim Stinson 

Visualforce page works in Classic but not in Lightning

I created a Visualforce page that instructs Salesforce to bypass the standard object tab main page (where typically you'd see "Recent" records).  Clicking on an object's tab in Classic will direct the user to their standard list view page.
The problem is this Visualforce code renders an error when in Lightning Experience (including using the Salesforce site on a mobile browser).  Can the code below be modified to work in Lightning?

<apex:page action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"/>
 
GauravGargGauravGarg

Hi Tim,

seems this functionality is now released . Please see the link:

https://success.salesforce.com/issues_view?id=a1p3A0000008jOxQAI

Thanks,

Gaurav

Tim StinsonTim Stinson
The article link you posted does not relate to the error message I get when accessing this Visualforce page in Lightning.  The error message I see is "This page isn't available in Salesforce Lightning"....not a "Malformed ID" error.

User-added image
GauravGargGauravGarg
Can you please provide the code, so that I can check. 

Thanks,
Gaurav
Skype: gaurav62990
Tim StinsonTim Stinson
This is all the Visualforce code on the page:
<apex:page action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"/>

 
GauravGargGauravGarg
Please update your code with below extract.
 
<apex:page lightningStylesheets="true" label="test" action="{!URLFOR($Action.Account.Tab, $ObjectType.Account)}" />

Thanks,
Gaurav
Skype: gaurav62990
Takes Freelance Job
Tim StinsonTim Stinson
That solution did not work.
GauravGargGauravGarg

Hi Tim,

It was working on my org, could you please share what error are you getting. 

Thanks,

Gaurav 

swaroop reddy 10swaroop reddy 10
Try to enable (Available for Lightning Experience, Lightning Communities, and the mobile app) path ---> setup--->visual force pages ---->select the page you want give acces ......give permisson check box (Available for Lightning Experience, Lightning Communities, and the mobile app)....
may be this will be help full
swaroop reddy 10swaroop reddy 10
User-added image