OwnBackup Recover for Salesforce Managing API Limits

    OwnBackup allows the admin to set limits for API consumption for files and attachment download via the REST API as well as optimize the service run time via Bulk APIs. This article will help explain what they do and how to utilize them.

    Before diving into OwnBackup, admins should first verify API usage in their Salesforce environment.

    1. Log in to Salesforce and enter the Setup Menu.
    2. Navigate to the System OverviewCompany Information, Storage Usage, and Bulk Data Load pages.

    These screens will help you understand the number of APIs your organization uses, your daily limits, as well as your total number of files and attachments. These numbers will be used to decide on your API limit strategy with OwnBackup.

    Salesforce governs the total number of Bulk and REST APIs used per rolling 24-hour period. Typically, there are other apps that utilize some of that API bank along with OwnBackup.
    Further reading: Salesforce API and limits FAQ and Bulk API limits

    To modify the settings in OwnBackup, select a service and navigate to the Options menu.

    Controlling the Rate of File & Attachments Download

    OwnBackup intelligently separates the download of data objects from the file/attachment objects during a given backup. Since files & attachments only need to be downloaded once (unless changed), the backup service checks for the difference between files and new/changed files in your environment. This includes items such as Attachments, Content Notes, Content Versions, Documents, etc..

    The default API consumption for downloading the file/attachment objects is 5,000 API calls, which can be increased up to 600,000 (note: each file consumes 1 REST API call). This means that with a 600,000 limit, every backup will attempt to use up to 600,000 API calls to download 600,000 potential records. This will continue for each backup until it finishes downloading all of the file/attachment objects.

    For example: If an org contains ~1400,000 files to download and the API limit is 600,000 - it will take approximately three backups for all the files to download. Warnings for file download limits will display until all of the file/attachment objects are fully downloaded.

    Optimizing the Data Backup via Bulk API

    See also Backup for Salesforce using Bulk API V2

    This option allows you to enable and optimize the number of API calls made when loading large data sets (4,000,000+ records in an object) up to the permitted Bulk API limits by Salesforce. Leveraging Bulk API can increase backup, therefore reducing the backup run times.

    OwnBackup recommends using the default limit of 1,000 bulk batches and increase, only as needed, by 200 batch size increments. 

    You may review the Bulk API Batches usage in your Backup History tab within the Service.

    If you have previously optimized your services with OwnBackup:

    • Checking this feature will override the previous settings with new dynamic settings
    • Unchecking the feature will restore the customized optimizations that were made

    If you are unsure on how to best set these options, reach out to OwnBackup Support via email or the Customer Portal.


    Keywords: Bulk, API, Limits, Limit

    « Previous ArticleNext Article »