New answers tagged

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 ...
Wes Lyons's user avatar
  • 146
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
leckoluck's user avatar

Top 50 recent answers are included