1

How to add Contract History related list on visualforce page?

I have tried: History, Histories, ContractHistories, ContractHistory, ServiceContractHistories, ServiceContractHistory

What is the exact child relationship name for Contract History?

5
  • Thanks Ratan. logs shows Histories as the name. But its still giving error 'Histories' is not a valid child relationship name for entity Contract. – Anita Bhanarkar Aug 10 '16 at 11:07
  • Maybe not an exact duplicate, but it's the same basic problem. – martin Aug 10 '16 at 11:11
  • @Ratan, yes field history tracking already enabled. – Anita Bhanarkar Aug 10 '16 at 11:12
  • @Ratan, yes. i am using apex:relatedlist – Anita Bhanarkar Aug 10 '16 at 11:15
  • @AnitaBhanarkar the only solution is to query history records and display in vf page. you can't use apex:relatedlist for this history records. check the Martin shared thread – Ratan Paul Aug 10 '16 at 11:34