I've been putting the finishing touches on the content for next week's Chatter for Developers webinar (did you register yet?). One of the new features in Spring 11 is the ability to work with Chatter Files via the content API. This is achieved by the introduction of a new entity in the Chatter domain model called ContentDocumentLink.

If you are familiar with the EntitySubscription entity, ContentDocumentLink works in a similar fashion. It contains a link to the Document (ContentDocumentId) and who/what the document is shared with (LinkEntityId). Documents can be shared much broader that say the following-followers relationship expressed with EntitySubscription, and as a result, LinkedEntityId can be used to identify files shared privately to you (aka peer-to-peer), a record, Chatter Group, Content Workspace, or even your entire company (by using your org id).

Use-case1
 
In addition, now that I can access a Chatter file via the content API with ContentDocumentLink I can do some cool think like working with the most current version of a document.

Content3l

Cool huh. Lot's more cool tips and tricks on next weeks webinar.

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS