You need to sign in to do that
Don't have an account?
New notes list in visualforce page
Greetings,
We have some custom visualforce pages for custom objects. These pages have the old "Notes and Attachments" object. After Winter 2016 was rolled out, our users cannot add notes through this list anymore. How do I expose the new notes along side the old notes and attachments? All the documentation I could find said the new notes needs to be added to page layouts, which is straight forward enough, but no instruction on how to do this for visualforce pages.
Code for the old notes and attachments:
<apex:relatedList list="CombinedAttachments" />
I've tried list="Notes", list="ChatterNotes", and a few others with no luck. Any help would be appreciated.
Thanks,
Keith
We have some custom visualforce pages for custom objects. These pages have the old "Notes and Attachments" object. After Winter 2016 was rolled out, our users cannot add notes through this list anymore. How do I expose the new notes along side the old notes and attachments? All the documentation I could find said the new notes needs to be added to page layouts, which is straight forward enough, but no instruction on how to do this for visualforce pages.
Code for the old notes and attachments:
<apex:relatedList list="CombinedAttachments" />
I've tried list="Notes", list="ChatterNotes", and a few others with no luck. Any help would be appreciated.
Thanks,
Keith
http://resources.docs.salesforce.com/198/0/en-us/sfdc/pdf/salesforce_field_names_reference.pdf
However, when I try to query some of the files, I receive a message that an 'entity does not support query'. Not much help for giving you a definitive answer, but I thought that the guide might be of some help pointing you in the right direction...
Visualforce Error: 'Notes' is not a valid child relationship name for CustomObject
Below is the code that created that error (error on line 2). I don't know the proper reference for the new notes related list, which is where I am having trouble.
<apex:relatedList list="CombinedAttachments" />
<apex:relatedList list="Notes" />
@Pete - thanks for the doc. I did not find what I was looking for but will keep reading. Good to know I am not the only one having an issue with this.
Here is the tag - <apex:relatedList list="AttachedContentNotes"/>
- ContentNote: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentnote.htm?search_text=content
- ContentDocumentLink (to relate it to records): https://developer.salesforce.com/docs/atlas.en-us.200.0.api.meta/api/sforce_api_objects_contentdocumentlink.htm#topic-title
As for seeing the notes in the visualforce page, in the controller, try this query (for an Account record): See a related post here: https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=ALLQUESTIONS&id=906F0000000D7FhIAKYou just need to remember to up your API version to one that supports the new object.