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

Trigger On Product


 Need help for writing a trigger for the following criteria


When a Product is added to an Opportunity, copy the Attributes field from the Product to the Line Item Description field of the Opportunity Line Item. This should carry over to the Quote Line Item when a quote is created


Any help in this regard is highly appreciated







You can do this without a trigger


1. Create a forumla field on Opportunity Products, which retrieves via Product you attribute field

2. Then using a WF rule, set the line description to formula field from step 1


Haven't tested this - but I'm 99% sure this will work