You need to sign in to do that
Don't have an account?

when opportunity product is added to opportunity
i have a custom feilds called product codes on opportunity.Whenever opportunity product is added to Opportunity,'Product Codes' field value should be appended with the product code of that opportunity product.
how to implement this through triggers,please help me out
how to implement this through triggers,please help me out
as for your question - you simply write a trigger on the opportuntiy product object ...
but you dont need code for this, you could use a rollup summary field
else you have trigger on Opporunity Lineitem object , which will fire while inserting and will show all line items code in opportunity as Comma seperate.