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

i want a trigger when a custom lookup field are null then other two custom currency field also null
object[quote line__c] have a lookup field [product master__c] with product object and two custom currency field one is base_price__c and other selling_price__c.
I want a trigger,
when removing the product from the lookup field then automatically assign the null value in the other two mentioned field.
please help.
I want a trigger,
when removing the product from the lookup field then automatically assign the null value in the other two mentioned field.
please help.
i have written this.
But i got an error when I want to update the record.
Hi Chandra,
This error is "Maximum Trigger depth exceeded" because when you execute update qt,
the same trigger is called again and again as this is "After Update".
Change this into "Before update", and remove "update qt" (Line 17) statement. As trigger will update it by itself!
Also see if you can utilize Trigger.new to loop over new version of records updated.
Let me know if this helps!