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
Preetham 345 SFDCPreetham 345 SFDC 

Inserting more than one Attachment for single Opportunity with the apex

Hi All,
Can any help me in providing a apex sample code for how to insert a more than one attachment for a single opportunity with the help of apex by reading the location of the attachment file from my local .

Thanks in Advance
Preetham 354 SFDC
Please check this links, it helps you to attach more than one file. The example below shows for account object, just modify the code to work for opportunity object