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
bhanu_prakashbhanu_prakash 

update product based on opprournity

Hi foks,

•    IF  Product Name = x (on quotation object) 
                                          AND Current Year AM is true 
                                          AND Opportunity stage = Closed Won,                                           
                                          then add the AM Year and   AM amount from the AM Object                               
                                          to quotation Line Item ID fields( AM Year and   AM Amount)
                                          
                                          
•    IF  Product Name =  Y (on Opportunity Line Item object) 
                                             AND   Current Year AM is true 
                                             AND Opportunity stage = Closed Won, 
        
          add the AM date and AM amount from the AM Object to
                    Opportunity Line Item ID fields(AM Year and AM Amount)
                    
                    
    Can we acheive it via workflow with field update or need to design trigger ?
    
    If i need to write trigger, can i design both in one trigger 

Thanks for advance