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
chris_centrachris_centra 

Error adding a relatedList: ProcessInstances is not a valid child relationship name...

Hello.  I am trying to add a related list (Approval Processes) to a VF page.  

I can run the following SOQL:
Select o.Name, o.Id, (Select Id, Status From ProcessInstances) From Order_vod__c o

And I can add a different related list to the page via apex:relatedList.

But if I do apex:relatedList list="ProcessInstances", i get the standard "... is not a valid child relationship ..." error.  

Any idea what I'm doing wrong?
thanks for your time.
chris
Best Answer chosen by chris_centra
pranab khatuapranab khatua
Please try this one:
 
<apex:relatedList list="ProcessSteps" ></apex:relatedList>

 

All Answers

pranab khatuapranab khatua
Please try this one:
 
<apex:relatedList list="ProcessSteps" ></apex:relatedList>

 
This was selected as the best answer
chris_centrachris_centra
That did it!  Odd, the documentation seemed to indicate that it was ProcessInstances, but maybe I mis-read it.  Thanks for your help!