function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhishek chauhan 20Abhishek chauhan 20 

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

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Abhishek,

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