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 Aug 24 '16 at 8:52
  • 'Histories' is not a valid child relationship name for entity Lead This is the Error Aug 24 '16 at 8:56
  • History objects are not supported in relatedList component.
    – Devendra
    Aug 24 '16 at 9:24
  • lead History showing in detail page of lead record Aug 24 '16 at 9:34
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.