0

I want show lead history in vf page. I tried as below

<apex:relatedList subject="{!Lead}" list="LeadHistory"/>

and

<apex:relatedList subject="{!Lead}" list="Histories"/> 

but page show error "not a child relation ship"

4
  • 1
    If possible please include the screen shot of error as well for getting a better understanding Commented Aug 24, 2016 at 8:52
  • 'Histories' is not a valid child relationship name for entity Lead This is the Error Commented Aug 24, 2016 at 8:56
  • History objects are not supported in relatedList component.
    – Devendra
    Commented Aug 24, 2016 at 9:24
  • lead History showing in detail page of lead record Commented Aug 24, 2016 at 9:34

1 Answer 1

0

You can not able to display History data using <apex:relatedList> component.

How to display History related list using <apex:relatedList> or by any other direct approach on a Visualforce page?

Refer one helpful blog to create History component using apex

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .