You need to sign in to do that
Don't have an account?
Vishal Saw
Write a trigger that calculates and updates a custom "Rating" field on a Contact based on the average ratings of all related Cases.
help to create this apex class
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Please try with the below code and let me know further :
ContactRatingTrigger.trigger: ContactRatingHandler.cls (Trigger Handler):
If this helps , please mark this as best answer.
Thank you.
All Answers
Please try with the below code and let me know further :
ContactRatingTrigger.trigger: ContactRatingHandler.cls (Trigger Handler):
If this helps , please mark this as best answer.
Thank you.
I think you're asking about Rating__c, so this field might be created for storing the average of all the ratings.
Hence it has to be a NUMBER field, with 2 decimal places maybe.
Hope this helps.
Thank you.