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
yarramyarram 

How can I add product related Attachments to Opportunity Line Item records? is it possible?

Hi All,

i am using standard Products and Opportunity Objects, 

i have one requirement like while adding the products to opportunity record if any product has attachments those attachments also be copied to the related Opportunity Line Item record.

but i am not able to do copy products attachments to related Opportunity line Item records. because of Opportunity Line Item object it doesn't related with Attachment Object.

how can i add the product related attachments to Opportunity Line Items records?

How can i achive this functionality?

Please help me on this..

Thanks,
Yarram
SonamSonam (Salesforce Developers) 
Out-of-box functionality doesn't provide this, you might be able to solve this via apex code:

Check the sample code in the following thread:
http://salesforce.stackexchange.com/questions/42700/copying-attachments-from-object-to-object-trigger
Ryan Young 18Ryan Young 18
That sample code involves custom objects and won't work out of the box to just enable attachments to Opportunity Products.