Skip to content
How to Relate a File to multiple records in Salesforce?
Sample Code:
- ContentDocumentLink objCDL = new ContentDocumentLink();
- objCDL.ContentDocumentId = ‘0695A000004dRpRQAU’;
- objCDL.LinkedEntityId = ‘0035A00003MuvnuQAB’;
- objCDL.ShareType = ‘V’;
- insert objCDL;