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
Yogesh AgasheYogesh Agashe 

How to display Account history Related List in Visual force page?

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.

Yogesh Agashe

Amit Singh1989Amit Singh1989



You should use correct relationship Name, 

AccountHistory is not a relationship name (relatioship Name is "Histories"), you can go through Eclipse to get relationship Name,


for example, if you want to display activity history of Account, you can use following code


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




Amit Singh