---
schema_version: "1"
id: e098f6d7506d93369d20ea4bf4414c53bd63efe30ee6555ed6c5cf5d0166c38f
title: External Data
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi-dev-guide-ext-data/guides/concept/bi-ext-data-overview.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ee7557d8ec3b2f25cb3e54310c711b19aafc7c1269d9d1b246a61928de2ebecd
products:
  - Analytics External Data API Developer Guide
  - analytics
---

# External Data

You can integrate external data into CRM Analytics to make the data available for queries from lenses and designer.

![Diagram of the process for uploading external data to CRM Analytics](https://developer.salesforce.com/media/bi_dev_guide_ext_data/bi_connect_data_external_detail_diagram.png)

The External Data API enables you to upload external data files to CRM Analytics. The External Data API can upload .csv files, and you can optionally specify the structure of your data by defining metadata in JSON format.

The External Data API is available in API version 31 and later.

The high-level steps for uploading external data by using the API are:

1.  Prepare your data in CSV format, and then create a metadata file to specify the structure of the data.
2.  Connect programmatically to your Salesforce organization.
3.  Configure the upload by inserting a row into the InsightsExternalData object, and then set input values such as the name of the dataset, the format of the data, and the operation to perform on the data.
4.  Split your data into 10-MB chunks, and then upload the chunks to InsightsExternalDataPart objects.
5.  Start the upload by updating the `Action` field in the InsightsExternalData object.
6.  Monitor the InsightsExternalData object for status updates, and then verify that the file upload was successful.

- **[External Data API Limits](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-limits.md)**


    When working with the External Data API, consider the following limits, in addition to the general CRM Analytics limits.

- **[Prepare Data Files](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-prepare-data.md)**


    To upload external data from .csv files into a dataset, first prepare your data files.

- **[Connect to Salesforce](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-connect-to-sf.md)**


    After preparing your data files, the next step in loading external data into CRM Analytics is to connect to your Salesforce organization by using standard Salesforce APIs.

- **[Configure the Upload](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-configure-upload.md)**


    Configure the external data upload by inserting a row into the InsightsExternalData object and setting configuration values.

- **[Add the Data](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-add-data.md)**


    When uploading external data files, you can use the InsightsExternalDataPart object to load the data in smaller chunks.

- **[Manage the Upload](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-manage-upload.md)**


    After you’ve created a header and uploaded the data parts by using the `InsightsExternalData` and InsightsExternalDataPart objects, update the Action field on the header object to `Process` to start processing the data.

- **[Update the Data](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-incremental-upload.md)**


    After you upload data into a dataset, update it by adding, upserting, or removing data.

- **[External Data Metadata Overview](https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-schema-overview.md)**


    To upload external data into a CRM Analytics dataset, make sure that you have prepared your data and metadata files.
