+ Start a Discussion

Uploading Attachments to Records

Hello all,

                 Is there any easier way to upload one attachment to multiple records at a time.

Here is how my requirement goes... In our organization users want to add a attachment to a group of accounts (the group may vary depending on their criteria). Is it possible for them to select an attachment and add it to the notes and attachments section of all the accounts.


Is it possible to add an attachment by a report to all those accounts?

Any help would be appreciated.


Thanks in advance.


wouldn't you loop through accounts and create the attachment in the loop?


something like...



for(Account a : [select id from Account where ... ]){

 Attachment attach = new Attachment();
 attach.parentId = a.id;
 attach.body = ...;
 attach.name = ... ;
 insert attach;