You need to sign in to do that
Don't have an account?
Need code to get link to chatter document
Hello,
When a user uploads a document to chatter and selects the "everyone with a link permission" salesforce.com generates a link.
How can I get that link through Apex code?
Currently I'm using the following, but nothing relates the the link that salesforce.com gives me.
SELECT ID, ContentDocument.LatestPublishedVersion.Title, ContentDocument.LatestPublishedVersion.Description, ContentDocument.LatestPublishedVersion.PathOnClient FROM ContentDocumentLink WHERE LinkedEntityId=:c.Id
As a secondary step, is it possible to automatically set view permissions on an uploaded document to everyone through apex?
Thanks,
- Mike