You need to sign in to do that
Don't have an account?
kjpeterson
Linking to ContentPost file from custom chatter feed
I'm creating a custom chatter feed using visualforce and apex. I can't find the value for the fileid that a contentpost created. In the standard chatter feed if I click on the file title it sends me to a page showing the file and it appears to link to just the salesforce file id. Can I get this id too? I'm just wanting to give users an easy way to go to the file.
If I am following you correctly, Spring 11 is your friend!
A new entity, ContentDocumentLink has been added to the Chatter Data Model to allow you to access files uploaded via Chatter. Try something like this:
Could I get this info in a single Feed query where I already have subqueries for FeedTrackedChanges and FeedComments?
No. You will need to do it as a separate query as the *Feed entity does not have a relationship with the ContentDocumentLink entity