i want update the total count on parent field when chiild record is deleted like if the value in total count field is 10 so when we delete 2 child record in child obj so it will date 10-2 =8. in the parent obj in total count filed Object_1__c is a parent
This seems to be duplicate question for the below.
https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=ALLQUESTIONS&id=9062I000000R6bxQAC (https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=ALLQUESTIONS&id=9062I000000R6bxQAC)
I have already answered in that question. Please close this question by marking this as best answer so it avoids duplicate efforts