You need to sign in to do that
Don't have an account?
![Bittu Kumar 59 Bittu Kumar 59](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
i want to create trigger that can handle sequence of contact on account ,
Create custom field on Contact for "Sequence Number". Create trigger to manage sequence of Contacts on an Account. Handle all the events and cases.
# Re-order sequence number when new records are inserted
# Re-order sequence number when records are updated
# Re-order sequence number when records are deleted
# In case of re-parenting, add record at last position
# In case of undelete, add record at last position
- Create test sheet for all the test cases
- Create test methods for all the test cases, please refer acceptance criteria 1) Bulk Re-parenting
2) Bulk update sequence number
3) Remove Parent
4) Bulk (Create, Update, Delete, Undelete)
5) update legacy (Existing) records
Test class coverage should be above 95%
# Re-order sequence number when new records are inserted
# Re-order sequence number when records are updated
# Re-order sequence number when records are deleted
# In case of re-parenting, add record at last position
# In case of undelete, add record at last position
- Create test sheet for all the test cases
- Create test methods for all the test cases, please refer acceptance criteria 1) Bulk Re-parenting
2) Bulk update sequence number
3) Remove Parent
4) Bulk (Create, Update, Delete, Undelete)
5) update legacy (Existing) records
Test class coverage should be above 95%
Use the code from https://developer.salesforce.com/forums/?id=9062I000000g4YuQAI to get started
If this information helps, please mark the answer as best. Thank you