8

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!

1 Answer 1

10

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>
2
  • Amazing! I knew it was an easy answer, but am curious where you found it?
    – psheil
    Dec 2, 2015 at 15:14
  • you can check in eclipse.
    – Ratan Paul
    Dec 2, 2015 at 15:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .