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

'ActivityHistories' is not a valid child relationship name for entity Case

I am trying to pull up the Approval History related list for the Case object but I get the following error:

"'ActivityHistories' is not a valid child relationship name for entity Case"

public Case getCase()
        thisCase = [select Id, Last_Name__c, First_Name__c, Middle_Initial__c, Cost_Center_Code__c, Employee_Position_Title__c,Employment_Category__c, 
        Expected_Arrival_Date__c from Case where Id = :caseId];
        return thisCase; }

I tried using {!Case} as well as {!Case.Id} for the subject attribute and none of those options work

<apex:relatedList list="ActivityHistories" subject="{!Case.Id}"/>


Message Edited by AnchalGoel on 11-25-2008 12:20 PM

Hi Aanchal,

The correct name of the related List is: "ProcessSteps"


Code: <apex:relatedList list="ProcessSteps" subject="{!Case.Id}"/>

Hope this helps!!