7

I'm trying to add the new Chatter Files related list to a Visualforce page but not having much luck. In the past, in order to add the Notes & Attachments related list, you would use:

<apex:relatedList subject="{!event}" list="CombinedAttachments" />

This still works, but I really want to leverage the new Winter '16 capability of better integrating attachments in the Feed with the record attachments. I've tried the following to no avail:

<apex:relatedList subject="{!event}" list="Files" />
<apex:relatedList subject="{!event}" list="ChatterFiles" />

Any ideas would be greatly appreciated!

8

Hey looking into your question this is the solution for you.

You need to use AttachedContentDocuments

<apex:page standardController="Account">
    <apex:relatedList subject="{!Account.Id}" list="AttachedContentDocuments" />
</apex:page>
| improve this answer | |
  • Amazing! I knew it was an easy answer, but am curious where you found it? – psheil Dec 2 '15 at 15:14
  • you can check in eclipse. – Ratan Paul Dec 2 '15 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.