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
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.