1 resposta
If it is updating a parent why not just use a Workflow Rule?
https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_cross_object_field_updates.htm&language=en (https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_cross_object_field_updates.htm&language=en)