4

I cannot find anything equivalent to:

<apex:relatedList list="ProcessSteps" />

which works for Approvals.

The only solution I can think of is to build a controller/extension that gets the raw history data (from MyObj__History) and write my own page elements to render it in a table. Is there a neater solution?

3

I don't believe there is a simple solution by just utilizing apex:relatedList. The way I have done it has always been a custom solution.

I would check out this link for more information on how to do it with a custom component.

2

I agree, I believe you need to create your own History Related List in VF. Iterative Logic has created a good article that details how to create a History Related List of your own.

2

As of Spring '17 (API v39.0), the Histories relationship works for custom objects: <apex:relatedList list="Histories"/>.

I couldn't find it mentioned in the release notes. Thanks for forum user sgkmills for pointing it out.

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.