You need to sign in to do that
Don't have an account?
RJ12
Trigger to Update a field in Parent object.
I'm trying to write a trigger to update a field in Parent record when Child record is created or updated.
Parent Object: Opportunity
Custom Field in Parent Object: Signed_by__c
Child Object: Invoice__c
Custom Field in Child object: Signed_by__c
Whenever the child record is saved (Inserted/updated), the value in 'Signed_by__c' field in child record must be copied to 'Signed_by__c' field in the parent record.
Also, you might need to consider scenario where multiple child record exists and which record field value needs to be updated in parent field as well.