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
Siddhant Singh 5Siddhant Singh 5 

Question is "Create a page that displays the detail page same as of the Account object along with its related lists". On deploying and running the following code a blank page opens in the browser. Where I am wrong ?

<apex:page standardController="Account">     <apex:detail subject="{!account.id}" relatedList="true" title="false"/> </apex:page>
Naren9Naren9
In the Apex page url, you have to append (?id=0016A00000YiKcqQAF) the Valid Account Salesforce Id.

Thanks,
Naren
 
Saravanan RajarajanSaravanan Rajarajan
Hi @Siddhant,


User-added image

Please add in url for Syntex:
 
https://<your Domain>.my.salesforce.com/apex/YourVFPageName/ValidAccountRecordID>

Example:
 
https://mmm3162-dev-ed.my.salesforce.com/apex/vfpage1/0016F00002NPg6s

Now You Can See​​​​​​​ Detail of {!account.id} in Your VF Page:

Please mark it best answer if it helps you.