---
schema_version: "1"
id: fec5ae8e0514a52a52fcb0064be2e9565b3e08cee476642a997f11457f6f679b
title: Update the 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-incremental-upload.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-ext-data/guide/bi-ext-data-incremental-upload.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 85c2cdc021a5c745fe080252932fd346769256c3a9c81bc97e7b4a781735e863
products:
  - Analytics External Data API Developer Guide
  - analytics
---

# Update the Data

After you upload data into a dataset, update it by adding, upserting, or removing data.

To update data, set the Action field to `Process` and the Operation field to `Append`, `Upsert`, or `Delete`.

This example sets the Action and Operation fields to append data to the InsightsExternalData object. To enable faster uploads, use the Mode field with a value of Incremental.

```nolang
SObject sobj = new SObject();
sobj.setType("InsightsExternalData");
sobj.setField("InsightsExternalDataId", parentID);
sobj.setField("Action","Process");
sobj.setField("Operation","Append");
sobj.setField("Mode","Incremental");

SaveResult[] results = partnerConnection.update(new SObject[] { sobj });

for(SaveResult sv:results)
  if(sv.isSuccess())
    parentID = sv.getId();
```

If Mode isn’t specified or is set to `None`, the append is a bulk upload that processes data slower.
