function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aaron2010Aaron2010 

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.

Walter@AdicioWalter@Adicio

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;

}