+ 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