We had a Visualforce page showing the Notes and Attachments using:

<apex:relatedList subject="{!Object__c}" list="CombinedAttachments" />

We recently decided to stop using attachments to instead use Enhanced notes and Files. We've already changed all objects layouts to show the new related lists, but the visualforce page still shows the old Notes and Attachments one.

I've managed to show the Files related list (AttachedContentDocuments) but the one for enhanced notes keeps throwing an error with the following message "'AttachedContentNotes' is not a valid child relationship name for entity Process", I've checked the metadata of the object in eclipse and that is the name of the relationship name.


<apex:relatedList subject="{!RS_Activity__c}" list="AttachedContentDocuments" />

Doesn't work

<apex:relatedList subject="{!RS_Activity__c}" list="AttachedContentNotes" />
<apex:relatedList subject="{!RS_Activity__c}" list="Notes" />

Has anyone managed to show the new enhanced notes in a Visualforce page ?


  • I'm pretty surprised this doesn't have more votes. Well asked and interesting question.
    – Adrian Larson
    Mar 18, 2016 at 22:08
  • not all relationships are supported by VF relatedList. You may have found a new one
    – cropredy
    Mar 21, 2016 at 1:32
  • @cropredy You're probably right, specially if we consider that enhanced notes where generally added in the Winter 16 release. I hope they will add it in feature releases and it would be really helpful if they had a list with all supported relatedLists. Mar 21, 2016 at 12:11

2 Answers 2


What meta-data apiversion is the visualforce page using? I have a page on version 36.0 with the following mark-up which displays the related list.

<apex:relatedList list="AttachedContentNotes" />

Also you need to ensure you have enabled enhanced notes in setup > Notes > Note Settings


Thank you for posting this question and answer!

AttachedContentNote is an object that you can find in the Developer Console. You can attempt to query it using SOQL:

SELECT Id, IsDeleted, LinkedEntityId, ContentDocumentId, Title, CreatedById, CreatedDate, LastModifiedById, LastModifiedDate, FileType, ContentSize, FileExtension, TextPreview FROM AttachedContentNote

However, you will get the error: "entity type AttachedContentNote does not support query."

So this error led me to try to find out all there is to know about 'AttachedContentNote' by querying the EntityDefinition Object (which DOES support SOQL query):

SELECT Id, DurableId, LastModifiedDate, LastModifiedById, QualifiedApiName, NamespacePrefix, DeveloperName, MasterLabel, Label, PluralLabel, DefaultCompactLayoutId, IsCustomizable, IsApexTriggerable, IsWorkflowEnabled, IsProcessEnabled, IsCompactLayoutable, KeyPrefix, IsCustomSetting, IsDeprecatedAndHidden, IsReplicateable, IsRetrieveable, IsSearchLayoutable, IsSearchable, IsTriggerable, IsIdEnabled, IsEverCreatable, IsEverUpdatable, IsEverDeletable, IsFeedEnabled, IsQueryable, IsMruEnabled, DetailUrl, EditUrl, NewUrl, EditDefinitionUrl, HelpSettingPageName, HelpSettingPageUrl, RunningUserEntityAccessId, PublisherId, IsLayoutable, RecordTypesSupported, InternalSharingModel, ExternalSharingModel, HasSubtypes, IsSubtype
FROM EntityDefinition
WHERE DurableId = 'AttachedContentNote'

In summary, I think I will query the EntityDefinition object the next time I can't find information on internal objects or I'm getting an error like 'Notes is not a valid related list for this object's page layout.'

  • 1
    While the answer does start with a "thanks", I think that this is an answer (and a different one than the existing answer). Voting to leave this one be.
    – Derek F
    Jun 21, 2018 at 16:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .