+ Start a Discussion
SDKSDK 

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

Hi,

 

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="{!QIF_API__c.id} />

kiranmutturukiranmutturu
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">
<head>

<apex:form >
<apex:pageBlock title="Notes">
<apex:pageBlockTable value="{!Custom_Object__c.Notes}" var="note">
<apex:column HeaderValue="Edit"><a href="/{!LEFT(note.id,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}" />
</apex:pageBlockTable>

</apex:pageBlock>
</apex:form>

</apex:page>
Satish_SFDCSatish_SFDC
Check if the Notes And Attachments Related List is present on the Standard Page Layout of the object.

Hope this helps.
Regards,
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.
SpirusSpirus

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" />
</apex:page>

 


I have again the same issue.

Any thoughts?

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

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