You need to sign in to do that
Don't have an account?
raysfdc1988
Tirgger to update a field on parent object accourding to the datevalue
I have parent object called-->student
and Child object called -->attendence
and in parent object filed called-->Current_month_attendence_count
and date field -->in child object
Now every time Attendence record is created for perticular student then Current_month_attendence_count increased by one
This can be achiveble by using a Rollup Summary field
But I want Count the total no attendence record of perticular student only for Current Month..
We cant add a Rollup Filter like Date Equals THIS MONTH
So i need to update Current_month_attendence_count field when Date__C (field in child object attedance) is Equals to THIS MONTH
I think this can be achivieble by Trigger...
Pl suggest me wit best solutions...thanks
Now i want update field Current_month_attendence_count filed in parent object..
and Child object called -->attendence
and in parent object filed called-->Current_month_attendence_count
and date field -->in child object
Now every time Attendence record is created for perticular student then Current_month_attendence_count increased by one
This can be achiveble by using a Rollup Summary field
But I want Count the total no attendence record of perticular student only for Current Month..
We cant add a Rollup Filter like Date Equals THIS MONTH
So i need to update Current_month_attendence_count field when Date__C (field in child object attedance) is Equals to THIS MONTH
I think this can be achivieble by Trigger...
Pl suggest me wit best solutions...thanks
Now i want update field Current_month_attendence_count filed in parent object..
Please can give me code...I am new to in apex..
Even Logic also helps me lot..
Please help me