You need to sign in to do that
Don't have an account?
Alastair1988
APEX Code Trigger to Add product when opportunity is created
I need help writing a small tigger to automatically add a product to an opportunity when created.
This will happen on every opportunity and will be the same product everytime. Can anyone point me in the right direction or provide a coded example?
Thansk,
This is a rough estimate of the code you'll want to use. We need to set the price book before adding the product, so we do this in "before insert", then we add the product in the event "after insert". You may need to adjust the fields to suit your needs as well.