You need to sign in to do that
Don't have an account?
Victor19
Notes and Attachments on Visualforce Page - Standard Controller with Extension
Hi,
I am trying to add the Notes and Attachments Section on my Visualforce Page and I keep getting the error as below:
'NotesAndAttachments' is not a valid child relationship name for entity Test Object
I used <apex:relatedList subject="{!Test_Object__c}" list="NotesAndAttachments"/>
Can someone please suggest or point out my mistake.
Thanks!
The relationship name for the Notes and Attachments related list has been changed in winter 14 release.
Thanks,
Sarv
All Answers
Yes! Notes and Attachment is on the Test Object (Custom Object) and the Visualforce Page is for the Test Object (Custom Object)
Have you tried removing the subject attribute? You don't need that if you're using a standard controller.
This seems weird but the related list should be present in the standard page layout.
Check if this resolves your issue.
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.
"This does not need to be on an object's page layout"
So, i advise you to create a case to see if this is an error.
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.
I tested it after removing the subject attribute and I still get the same error!
Did you find any solution to your problem?
I am dealing with the exact same issue...
I couldn't find a fix for the issue using the standard functionality. I am working on some custom code to include this functionality. Let me know if you come up with a fix for this issue.
Hi Victor,
The weird thing is that for another custom object that I have created in the past it works without any problem.
This issue came up recently when I tried to add the related list in an new custom object...
I think it is like a Salesforce issue then! Did it work with a Visualforce Page? I hope they fix it pretty soon!
I just opened a help ticket with Salesforce and this was their reply. I was getting the "NotesAndAttachments is not a valid related list for {!CustomObject}" error.
"The thing you are trying to do works with Salesforce.com API version upto 28.0. This is no longer supported with Api version 29.0. Though it's not documented in Winter' 14 release notes but we have filed to update the release notes to incorporate this change."
OUTRAGE!
Thanks for the update.
This is going to be a big issue for us! For such a simple functionality, a lot of code has to be written and maintained - completely unnecessary.
I have written code for this functionality, but i keep getting weird errors every time whenever I try attaching more than 1 file. I guess I will have to work on my code then :(
This is unbelievable...Are they retarted???Sorry for my language but I cannot find any reason why they could do that...They are supposed to make our lives easier and now we need to write code to support this functionality...
The relationship name for the Notes and Attachments related list has been changed in winter 14 release.
Thanks,
Sarv
I am able to create notes and attachment related list, but the problem now is in Account record, I am able to see the contacts notes and attachments also. (parent , child). I dont want to see the contact records in account related list.. Any body please suggest.