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
Hadar Har-gilHadar Har-gil 

Adding attachment to a line item

Hi all,

I have a requirenment to be able to upload (locally from the computer)  attachment to  the line level -  for exemple in opportonity product line item. 

Anyone has a suggestation how can I do it?

Thanks
KaranrajKaranraj
Not directly. But you can achieve by creating relation filed with the new custom object from the opportunity line item.
Then you have upload all the attachment to the related acctachment custom object. Then in the  visualforce page query the child object attachment for the opportunity line item and display. You can use that visualforce page as a inline Vf page in the opportunity line item.