Skip to main content
I am using Content and trying to expose it as a related list on my custom object. I can do this through the UI no problem. I have a Visualforce page that I'm trying to display the related content. I've tried a controller extension to query the ContentDistribution, and that did not work. Then I saw there were changes to the API for Winter '15 and we can now use ContentDocumentLink. Even when I change my code to query on this, I am still not getting anything when I go to display the related content. How should I query to get the list of related content to appear? Using the apex:relatedList tag for CombinedAttachments means nothing appears even though there is content related to my custom object.
6 Kommentare
  1. 29. Apr. 2015, 15:02
    I'm approaching the moment where I say this is not possible. I looked at the WSDL to see what the "real" related list name is and it is AttachedContentDocuments. This does not work. I tried querying on the ContentDocumentLink object using the LinkedEntityId, but it seems the LinkedEntityId is just the library, not the object it has been attached to. If one of the product managers could respond, that would be very helpful. @Arnab Bose @Adam Wegel? Please just let me know if this is available via the API. If not, I can stop spinning my wheels. Thanks.
0/9000