You need to sign in to do that
Don't have an account?
Sumanta Satpathy
After trigger for update field value in parent object when filed updated in child object where a lookup relation ship exists in between child and parent
A requirement for trigger:
I just want to write one after update trigger.
The scenario is as follows:
Employee_c and Employer_c two custom objects are there.
Employee__c is the child object and Employer_c is the parent object.
Lookup relationship is present in between the objects.
The lookup field is employer name.
When salary is getting updated in the salary_c field of the Employee_c object at that time
Total cost_c field present in the Employer_c object needs to be updated.
Object details:
Child Object:
Object name: Employee__c
Fields: Name
Salary__c
Employeer_Name(lookup to Employer__c)
Parent Object: when Salary__c getting updated
Object Name:Employer__c
Fields: Name
Total_Cost__c
Total_cost__c should be updated
Any suggestion is appretiated.
Thanks in advance
I just want to write one after update trigger.
The scenario is as follows:
Employee_c and Employer_c two custom objects are there.
Employee__c is the child object and Employer_c is the parent object.
Lookup relationship is present in between the objects.
The lookup field is employer name.
When salary is getting updated in the salary_c field of the Employee_c object at that time
Total cost_c field present in the Employer_c object needs to be updated.
Object details:
Child Object:
Object name: Employee__c
Fields: Name
Salary__c
Employeer_Name(lookup to Employer__c)
Parent Object: when Salary__c getting updated
Object Name:Employer__c
Fields: Name
Total_Cost__c
Total_cost__c should be updated
Any suggestion is appretiated.
Thanks in advance
I have solved by myself..this the sample code
All Answers
I have solved by myself..this the sample code