I'm trying to create a Visualforce page with a number of related lists. I'm trying to display the same related lists that I have on the standard layout page. OpenActivities, ActivityHistories, Attachments, and CaseSolutions all work fine.
However, when I try to add EmailMessages I get the following error.
Visualforce Error
'EmailMessages' is not a valid child relationship name for entity Case
I'm able to sort of work around it by getting the email messages using some soql, but I'd really like it to be just a plain related list.
Can anyone suggest what I might be doing wrong?