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
test batchtest batch 

Account records are not displaying on vf page

Can able to display all object records with below snippet except Account Object, please let me know the reason behind this.
<apex:page standardController="Account" recordSetVar="items" >
 <apex:pageBlock >
  <apex:pageBlockTable value="{!items}" var="a">
   <apex:column value="{!a.name}"/>
   <apex:column value="{!a.industry}"/>
  
  
  </apex:pageBlockTable>
 
 </apex:pageBlock>
  
</apex:page>
Best Answer chosen by test batch
RD@SFRD@SF
Hi test batch,

Can you please check the list view of the account. I have observed that the recordSetVar picks up the current list view of the logged in user.

Hope it helps
RD

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Test Batch,

The above code seems pretty fine and has no issues.The same code has worked for me when I tried in my developer org and the output is as follow in the below image.
User-added image

May I suggest you please try it by giving an attempt in a new developer org which should probably resolve the issue.

Regards,
Nagendra.
test batchtest batch

only this specific org, which is not working.. May i know the reason behind this ..?

User-added image
 

NagendraNagendra (Salesforce Developers) 
Hi,

This might be due to some pre-existing configuration or the code which might be stopping from the assessment check.

Please mark this as solved if it's resolved so that it might help others who are encountering similar issue.

Regards,
Nagendra.
test batchtest batch
User-added image
RD@SFRD@SF
Hi test batch,

Can you please check the list view of the account. I have observed that the recordSetVar picks up the current list view of the logged in user.

Hope it helps
RD
This was selected as the best answer