New answers tagged contentversion
0
votes
ContentDocumentLink Trigger successfully blocks file upload on Org but fails in Dev Console
I was able to recreate your issue in a sandbox but was unable to resolve it while keeping addError(). addError() was not throwing an exception in the unit test. Maybe someone else can recommend how to ...
0
votes
Accepted
Downloading a file via REST API
You can try getting the ContentSize when querying the ContentVersion, like this:
SELECT ContentSize, VersionData FROM ContentVersion WHERE ContentDocumentId = '{id}' AND IsLatest = true
Top 50 recent answers are included
Related Tags
contentversion × 382contentdocument × 138
apex × 134
files × 76
contentdocumentlink × 72
content × 33
rest-api × 31
trigger × 26
soql × 26
visualforce × 24
unit-test × 24
lightning-web-components × 17
attachment × 16
api × 14
blob × 13
lightning × 9
contentnote × 9
lightning-aura-components × 8
community × 8
data-loader × 8
fileupload × 8
javascript × 7
opportunity × 7
after-trigger × 6
libraries × 6