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
mahe_developermahe_developer 

Related list for lead history

Hi All,

 

I want to add lead history as related history in Custom lead view visul force page, as below....

 

<apex:relatedList list="ActivityHistories" /> like  what is for lead history tracking?????

 

 

Thanks.......

 

Mahendra

bob_buzzardbob_buzzard

I don't think you can access the history list this way.  You can vote for this idea to add that functionality:

 

http://success.salesforce.com/ideaView?c=09a30000000D9y3&id=08730000000711GAAQ

 

The following blog post gives an example of displaying the account history - you should be able to use that to access the Lead history I would think:

 

http://salesforcedeveloperblog.blogspot.com/2011/05/history-related-lists-in-visual-force.html

JDallasJDallas
This has since been fixed by anyone with the same issue:
 
<apex:page standardController="Lead" showHeader="false" sidebar="false">
<apex:relatedList id="HistoryList" list="Histories"/>
</apex:page>