Spring 19' update there is a new setting in the "App Permission -> Content -> Query All Files: Allows View All Data users to SOQL query all files in the org". This is not enabled by default for the admin user but you can at least enable it in a Profile/Permissions Set.
SELECT ContentDocumentId,LinkedEntityId,ContentDocument.Title, ContentDocument.ContentModifiedDate, ContentDocument.ContentSize FROM ContentDocumentLink WHERE LinkedEntityId = '00655000007PiSd'
Thanks both! I see that you have to specify the ContentDocumentId which is interesting. I'll need to spend some time looking at the ContentVersion, ContentDocumentLink and ContentDocument relationships as it's still a little confusing, but this context helps greatly!!! Thanks!
kinldy market your product somewhere else. this is not the right platform. its Q&A form for salesforce CRM developers. kinldy understand that. remove your ads from here. i already flagged you people.
Greetings to you,
All content document public links are got stored in ContentDistribution Object.
For object reference: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdistribution.htm
Yes pierce, you can query public url from content distribution object with help of ContentDocumentID or ContentVersionId.
Ex : Select Id,ContentDocumentId,ContentDownloadUrl,DistributionPublicUrl from ContentDistribution where ContentDocumentId='0691000000FOq3nAAD'
I hope this is helpful to you. Please mark this as the best answer if it's useful to you.
Regards
Vijay
All Answers
Spring 19' update there is a new setting in the "App Permission -> Content -> Query All Files: Allows View All Data users to SOQL query all files in the org".
This is not enabled by default for the admin user but you can at least enable it in a Profile/Permissions Set.
Document:
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentversion.htm
you should query something like this:
hope this will hleps you.
Thanks
karthik
Greetings to you,
All content document public links are got stored in ContentDistribution Object.
For object reference: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdistribution.htm
Yes pierce, you can query public url from content distribution object with help of ContentDocumentID or ContentVersionId.
Ex : Select Id,ContentDocumentId,ContentDownloadUrl,DistributionPublicUrl from ContentDistribution where ContentDocumentId='0691000000FOq3nAAD'
I hope this is helpful to you. Please mark this as the best answer if it's useful to you.
Regards
Vijay
When we’re accomplishing something particularly on the PC we additionally need it to be saved it in…
https://www-nbiclearancecom.com/
kinldy market your product somewhere else. this is not the right platform. its Q&A form for salesforce CRM developers. kinldy understand that. remove your ads from here. i already flagged you people.
Thanks
karthik
Thank you for sharing with us, and we sincerely hope you will continue to update or post other articles.
Best Storm Bowling Balls