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
Arundhati DebArundhati Deb 

Write a trigger to get details of all the products in the opportunity line items on opportunity

Hi,
I need to write a trigger to get the details of all products in the opportunity line item on fileds in opportunity.

Thanks
Khan AnasKhan Anas (Salesforce Developers) 
Hi Arundhati,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/89140/trigger-to-get-related-list-of-opportunity-line-items-and-create-a-new-opportuni

https://salesforce.stackexchange.com/questions/108246/how-to-get-product-name-using-product2-from-opportunitylineitems

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas