Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<Id, ContentVersion> contentVersions = new Map<Id, ContentVersion> {};
- Set<Id> versionsToAttach = new Set<Id> {};
- contentVersions.putAll([
- SELECT Id, ContentDocumentId FROM ContentVersion WHERE ContentDocument IN :contentDocumentIds
- ]);
- for (Id version: contentVersions.keySet()) {
- versionsToAttach.add(version);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement