+ Start a Discussion

Apex Trigger how to?



I want to create a simple trigger which automatically inserts products after an opportunity is first created.


I have gotten as far as:




trigger ProductAddTrigger on Opportunity (after insert) { }


What is the syntax to add opportunity products? 



Best Answer chosen by Admin (Salesforce Developers) 

I've responded to your duplicate post here.

Please don't post the same message across different categories.