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
vivek salesforce 8vivek salesforce 8 

I want to write a trigger on a field which has to be incremented if i add a new record to the parent record and decremented if i delete a record?

Best Answer chosen by pcon
thisisnotaprilthisisnotapril
Give it a try then! If you've never written a trigger before you should absolutely complete the Trailhead module on them - https://developer.salesforce.com/trailhead/module/apex_triggers

All Answers

thisisnotaprilthisisnotapril
Give it a try then! If you've never written a trigger before you should absolutely complete the Trailhead module on them - https://developer.salesforce.com/trailhead/module/apex_triggers
This was selected as the best answer
❤Code❤Code
Hi thisisnotapril,

Can u please help me in deleting all my posts .

Regards
Sidhartha
BubuBubu