1
vote
Accepted
Create ContentDocumentLink after insert ContentDocument error
What I did in the following is: direct retrieval of the FileGroupId__c from SomeCustomSetting__c as an Id, eliminating unnecessary type casting. Also added, null checks are introduced to ensure the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
after-trigger × 431trigger × 297
apex × 280
before-trigger × 65
unit-test × 21
update × 16
visual-workflow × 12
code × 9
soql × 8
workflow × 8
callout × 8
class × 8
opportunity × 8
map × 8
trigger-oldmap × 8
community × 7
failing-tests × 7
field-update × 7
future × 7
contentdocumentlink × 7
insert × 7
helper × 7
process-builder × 6
code-coverage × 6
approval-process × 6