You can use batch settings to overwrite the scope for the batch processes that are shipped with JustOn. The scope specifies the execution size, that is, the number of records to be processed by the batch class in one go.
The standard execution size for a JustOn batch process is
1. Depending on your business requirements and your system performance, you can use batch settings to set higher values.
Each batch setting specifies the following mandatory information:
||Specifies the name of the batch class whose scope is to be modified. Use one batch setting record for each batch process.|
||Specifies the scope, that is, the batch process execution size. Must be a positive integer value.|
The following table lists the recommended scopes for the batch classes, grouped by business processes, that are shipped with JustOn.
JustOn is designed to scale the scope automatically to a well-functioning value if the defined scope value is too large.
|Business Process||Batch Class||Recommended Scope|
|BatchTransactionalInvoiceRun||200 - 500|
|BatchTransactionBuilder||200 - 500|
The following batch classes do not consider batch settings because of defined limits:
- BatchDunningEmail (
- BatchInvoiceEmail (
- BatchAmazonS3Upload (
- BatchGoogleDriveUpload (
Configuring Batch Class Scope
To configure a specific scope for a batch class, you define a new batch setting:
In Setup, open Custom Settings.
In Salesforce Lightning, navigate to Custom Code > Custom Settings.
In Salesforce Classic, navigate to Develop > Custom Settings.
Click Manage in the row of Batch Settings.
- Click New.
Specify the details as necessary.
- Name: The name of the batch class whose scope is to be modified
- Scope: The batch process execution size
Create an individual batch setting record for each batch process to be configured.