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
Vigneshwaran LoganathanVigneshwaran Loganathan 

hi frnz, I have given with a project where i have to write trigger like following

 IN OPPORTUNTY WHENEVER THE STAGE IS 100% & CLOSED GO TO CORRESPONDING OPPORTUNITY LINE ITEM AND GET THE PRODUCT CODE AND GO THE PRODUCT OBJECT AND REDUCE THE STOCK FIELD BY THE QTY MENTIONED IN THE OPPORTUNITY LINE ITE
Richa KRicha K
Trigger on opportunity
Event: After update
If(StageIsChanged)
get the lineitem qtyt and the corresponding code in a map
Use this map to get the product and do the calculations