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
MontTwo MontTwoMontTwo MontTwo 

I need a Trigger for 300 case's records in one chunk

Hello, Please, don't ask me "Why? You can use 200 and that's enough!". I have a task with the requirement to test inserting/importing 300 case's records from my Trigger class. Trigger creates new cases and replaces already closed. Is it possibly to do? If yes, what kind of tool can I use? I know about Batch Apex, but don't know if it can update 300 records per 1 time.
Raj VakatiRaj Vakati
You can do it by using the data load and set the batch size to 300 .. its simple 

Batch size and check BULK API options 

n a single insert, update, upsert, or delete operation, records moving to or from Salesforce are processed in increments of this size. The maximum is 200 records. We recommend a value between 50 and 100.
The maximum value is 10,000 if the Use Bulk API option is selected.

Refer this link 

https://help.salesforce.com/articleView?id=configuring_the_data_loader.htm&type=5
Glyn Anderson (Slalom)Glyn Anderson (Slalom)
You can execute a Batch process with any batch size from 1 to 2000.  Use the following syntax:

<pre>
    Database.executeBatch( new MyBatchableClass(), 300 );
</pre>