You need to sign in to do that
Don't have an account?
nmnbawa
Task mark auto complete
Hi Everyone,
Can someone please help.
I have a custom object called Student and has associated tasks with it.
when a student is not active, I want all the tasks to be automatically marked as completed. can someone please help with the trigger and test class.
Many many thanks in advance.
here you go. note this is an updated trigger from my original one.
note also that i am assuming your Student record's "Active" custom field is a checkbox. If it is some other field type then change the map value from boolean to String or whatever the type is
All Answers
here you go. note this is an updated trigger from my original one.
note also that i am assuming your Student record's "Active" custom field is a checkbox. If it is some other field type then change the map value from boolean to String or whatever the type is
and the test class...
Thanks a lot for your reply.
The field is not called Active. Its called status.
The values I am considering is Status = "Expelled,Dropped"
Please help
Many thanks again