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

Account History related List

Hi all,

I want to display Account History as a related list in Visual force page. I am trying below syntax

<apex:page standardController="Account">
        <apex:relatedList list="AccountHistory"/>

But it is giving error as 'AccountHistory' is not a valid child relationship name for entity Account '

Please let me know the correct syntax of API name for account history to display it as a related list.

Best Answer chosen by Admin (Salesforce Developers) 

All Answers




Hope this will help :



Please accept my answer as a solution if my solution was helpful. This will make it available to others as a proper answer. If you felt that I went above and beyond please give me Kudos by clicking on on the star icon.



Cool Sfdc


Hello Abhi, 


the relatedList name is "Histories", but salesforce will not let you use it right away, you will need to iterate over it. 

Take a look at /t5/Visualforce-Development/How-to-display-Contact-history-Related-List-in-Visual-force-page/td-p/433349


The solution to the post above is for Contact, but can easily adapted.