You need to sign in to do that
Don't have an account?

Need Help in trigger
Need help in writing Trigger
want to write trigger on Contact Object
created checkbox field on contact object with name Technical_employee
created number field on Account object with name Total_Technical_Employee
Total_Technical_Employee field should contain count of records from contact object whose Technical_employee checkbox is checked, how to write (insert, update, delete) trigger for this.
Thanks,
Manish
You can also do it using Roll-up summary fields.
Or is there any special reason you would like to use triggers?
Regards,
Satish Kumar
Hi Satish,
I want to do it using Apex triggers (insert ,update,Delete).
I am new to salesforce and facing difficulty to code these triggers.if possible help me in writing and understanding these triggers.
Thanks,
Manish.
Hi,
I think below code snippet can help you in start writing your trigger. I have added comments as well to make sure you understand the code.
Please let me know if you need further help. Hope this will help you.
Happy to help you!
Regards,
Digamber Prasad