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|
|Subscription Metrics||BatchSubscriptionMetricBuilder||50 - 100|
The following batch classes do not consider batch settings because of defined limits:
- BatchDunningEmail (
- BatchInvoiceEmail (
- BatchAmazonS3Upload (
- BatchGoogleDriveUpload (
Configuring Batch Class Scope
Create an individual batch setting record for each batch process scope to be configured.
Click to enter Setup, then 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