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
Ashmi PatelAshmi Patel 

'NotesAndAttachments' is not a valid child relationship name for entity Account

Here is my visualpage code..
 

<apex:page standardController="Account" showHeader="true"
      tabStyle="account" >
   <style>
      .activeTab {background-color: #236FBD; color:white;
         background-image:none}
      .inactiveTab { background-color: lightgrey; color:black;
         background-image:none}
   </style>
   <apex:tabPanel switchType="client" selectedTab="tabdetails"
                  id="AccountTabPanel" tabClass="activeTab"
                  inactiveTabClass="inactiveTab">   
      <apex:tab label="Details" name="AccDetails" id="tabdetails">
         <apex:detail relatedList="false" title="true"/>
      </apex:tab>
      <apex:tab label="Contacts" name="Contacts" id="tabContact">
         <apex:relatedList subject="{!account}" list="contacts" />
      </apex:tab>
      <apex:tab label="Opportunities" name="Opportunities"
                id="tabOpp">
         <apex:relatedList subject="{!account}"
                           list="opportunities" />
      </apex:tab>
      <apex:tab label="Open Activities" name="OpenActivities"
                id="tabOpenAct">
         <apex:relatedList subject="{!account}"
                           list="OpenActivities" />
      </apex:tab>
      <apex:tab label="Notes and Attachments"
                name="NotesAndAttachments" id="tabNoteAtt">
         <apex:relatedList subject="{!account}"
                           list="NotesAndAttachments" />
      </apex:tab>
   </apex:tabPanel>
</apex:page>
Best Answer chosen by Ashmi Patel
sfdcMonkey.comsfdcMonkey.com
hi ashmi patel
 use
<apex:relatedList subject="{!account}"
                           list="CombinedAttachments" />

:)
i hope it helps you
let me inform if it helps you
thanks

All Answers

BALAJI CHBALAJI CH
Hi Ashmi,

Try using
<apex:relatedList subject="{!account}" list="CombinedAttachments" />
Instead of :
<apex:relatedList subject="{!account}" list="NotesAndAttachments" />

Please find below links for more information:
http://releasenotes.docs.salesforce.com/en-us/winter14/release-notes/rn_186_forcecom_attachments_related_list.htm
https://developer.salesforce.com/forums/?id=906F00000008rzSIAQ

Let us know if that works for you.

Best Regards,
BALAJI
sfdcMonkey.comsfdcMonkey.com
hi ashmi patel
 use
<apex:relatedList subject="{!account}"
                           list="CombinedAttachments" />

:)
i hope it helps you
let me inform if it helps you
thanks
This was selected as the best answer
Ram AgarawalRam Agarawal

Hi Ashmi,

Try using
<apex:relatedList subject="{!account}" list="CombinedAttachments" />


Instead of :
<apex:relatedList subject="{!account}" list="NotesAndAttachments" />


Best regards
Ram Agarawal
Ashmi PatelAshmi Patel
ok..thnkuu all...solved