You need to sign in to do that
Don't have an account?
TheresaAnderson
Update an Opportunity checkbox when a Task is completed
I need help with a trigger to set a checkbox true on the Opportunity object when a certain task is completed.
IF
Task Status = 'Completed'
Task Type = 'Face to Face Meeting'
Then set
Sys SA 01 = True
You can use the workflow to do this
If
Task Status = 'Completed'
Task Type = 'Face to Face Meeting'
then use the action field update and set Sys SA 01 = True
I tried the workfow rule where it was based on the opportunity. The formula would not allow me to link to the Task object. I tried the reverse too.
Since Task and Opp are 2 diff objects you need to write a trigger for this, workflow works only if it is one object
Do you know where I can locate sample code for this trigger?
http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf