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
kumar 420kumar 420 

Insert the value in Contact(Child) Object custom field 'sequence number'

hello,
i have custom field 'sequence number'  on Contact(Child) object .i wanna insert the value in custom field and than i insert the value in next record automatic the next record value is increse from our first record value .
for Example if i have one Account(Parent) Object that Account name is 'HDFC' in the HDFC Account i have 4 Contact(Child) Object in Contact Object i have  'sequence number'  Custom fields in Contact Object.I insert the record in 1 contact 'sequence number'  Custom fields and after than i will insert the record 2 contact 'sequence number'  Custom fields it automaticly increse by one form the 1 contact 'sequence number'  .and then i will insert the 3 contact 'sequence number'  Custom fields it automaticly increse by one form the 2 contact 'sequence number'.and all this sequence for all contact 

i am new in salesforce apex so give me solution with example and some expletion
thank you
....