You need to sign in to do that
Don't have an account?
two object that will update with one trigger
Hi all,
I am new to apex trigger i have a situation here and hoping for your quick response.
i have two custom objects here Exercise__c and Trainee__c, in Exercise__c i have a field of exercise1(number), exercise2(number), exercise3(number), exercise name and a lookup field of trainee name in Trainee__c object while in the Trainee__c i have a fields of trainee name and status(picklist).
i want to validate the 3 fields in the Exercise__c if the sum of 3 fields is less than 75 the status picklist field in Trainee__c will update to Fail and if it isgreater than 75 it will update to Pass.
Thank.
You might have to change the field names a little but, but try something like this:
Good luck