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

Create apex trigger to update value in task's related case
Hello ,
I want to create an Apex trigger when I create a task, It updates a field in related case , and also when I close that task , It also modified that field, and since the related object for the task may be either opportunity or case, I don't know how to do that.
I need help please.
Thank you so much.
I want to create an Apex trigger when I create a task, It updates a field in related case , and also when I close that task , It also modified that field, and since the related object for the task may be either opportunity or case, I don't know how to do that.
I need help please.
Thank you so much.

hmm...maybe your need triggers for both opportunity and case...