• Shailesh Patel 7
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
i want to insert large number of records in Account Objects but as you know on salesforce governor limits is 10,000 records/DML so how can i divide list dynamic into sublist and is there any other way to insert list of records without exceed governor limits. i have been using batch class for it also. can you give me a sample code for my solution.
as per my knowledge there is a method for sublist in java but how can i do in apex?Please guide me.
Thanks in Advanced.
 
I have got a list of SObjects having N number of items/sObjects

SObject[] sList = [sobject1, sboject2, sboject3, ........ , sobjectN];

How can I get just 10 items from the begining of the list

Thanks in advance!