action.skip

How to enable batch processes with more than 10.000 records?

← Salesforce Environment FAQ

Usually, Salesforce does not execute batch processes with more than 10.000 records. To overcome this limit, JustOn Billing & Invoice Management has to call Salesforce's REST API.

Starting with version 2.107, JustOn Billing & Invoice Management uses the new method getOrgDomainUrl() to interact with the Salesforce REST API. This method does no longer need a Remote Site setting to allow your org making API calls. For details, see getOrgDomainUrl() in the Apex Reference Guide.

If you use a pre-2.107 version, however, you must allowlist your site as a remote site. This setting is relevant if you run batch processes from list views with more than 10.000 records, like, for example, Export or Delete Drafts on the Invoice or Invoice Run tabs.

To allowlist your site as a remote site:

  1. Click to enter Setup, then open Remote Site Settings.

    In Salesforce Lightning, navigate to Security > Remote Site Settings.

    In Salesforce Classic, navigate to Security Controls > Remote Site Settings.

  2. Click New Remote Site.

    alt text

  3. Provide a descriptive name.

    The provided name must be unique and can only contain alphanumeric characters and underscores.

  4. Specify the URL of your current instance as required, like https://eu5.salesforce.com.

    Do not specify the My Domain subdomain but the instance URL. Find the instance part of the URL on the Company Information page in Setup, or use nslookup <my-domain>.my.salesforce.com in a terminal window (as explained in View instance information for your Salesforce Organization in the Salesforce Help).

  5. Click Save.