+ Start a Discussion
HaralambyHaralamby 

Apex Trigger how to?

Hello,

 

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) 
aalbertaalbert

I've responded to your duplicate post here.

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