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

One object (s1) & 3 tasks (t1, t2, t3) are there. Each task performing discount related stuff. Write a trigger that should calculate the sum of 3 tasks. And if any task is modified than trigger should fire automatically & perform the same.

: List<Task> listof tasks = [select id, name from Task where whatId=Trigger.new];