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

'NotesAndAttachments' is not a valid child relationship name for entity QIF API



When I am trying to display the NotesAndAttachments on the visualforce page i am getting the above error

I have used the following tag to display NotesAndAttachments on the page. Kindly do needfull asap.


<apex:relatedList  list="NotesAndAttachments"  title="Request For Proposal(RFP)" subject="{!} />

you can't put like that and error is stating the same....
but you can do some thing like this

<apex:page standardController="Custom_Object__c" tabStyle="Custom_Object__c">

<apex:form >
<apex:pageBlock title="Notes">
<apex:pageBlockTable value="{!Custom_Object__c.Notes}" var="note">
<apex:column HeaderValue="Edit"><a href="/{!LEFT(,15)}/e?&retURL=%2Fapex%2FCustom_Object%3Fid%3D{!Custom_Obeject__c.Id}">Edit</a></apex:column>
<apex:column value="{!note.createddate}" width="120px"/>
<apex:column value="{!note.createdbyid}" width="120px"/>
<apex:column value="{!note.body}" />


Check if the Notes And Attachments Related List is present on the Standard Page Layout of the object.

Hope this helps.
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

I have the same issue.

Notes and Attachments related List is present on the Standard Page layout.


I have also  created a new custom object and a new VF page with just the statement that shows the Notes and attachment related list


<apex:page standardController="Costing_Pricing__c" tabStyle="Costing_Pricing__c">
<apex:relatedList subject="{!Costing_Pricing__c}" list="NotesAndAttachments" />


I have again the same issue.

Any thoughts?

the provided links do not works....
The reason is because for API 29.0 the keyword is not "NotesAndAttachments" but "CombinedAttachments".
Alex SchachAlex Schach

Thank you! I have been trying to get this to work for hours. Even the explorer shows the child relationship name is "NotesAndAttachments".
Alka BajajAlka Bajaj
Thank you... CombinedAttachments in list attribute worked...
@vanessen That was good one. Thanks.
Jason KelleyJason Kelley
@vanessen wins the day!  Thank you!