---
schema_version: "1"
id: cede04562e8414386e3005826ced313082e4fc86f714af83ee846f0b19be4764
title: Committing CSV Export
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/rtr_commiting_csv_export.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/rtr_commiting_csv_export.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9e0fb6ed5b443e4bf961b7157260915e2b3783c640b5852b05f8d03695af266f
description: This Apex call commits a full or delta CSV export.
---
# Committing CSV Export

This Apex call commits a full or delta CSV export.

Generally, there are two types of CSV exports generated by the system—a full and a delta export.

![Note](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/images/icon_note.png)

#### Note

The committed exports are retained for 30 days.

- The full data contains all the data for the provided business year, report, and sales org.
- The delta export contains only the changed data for the provided business year, report, and sales org since the last commit.

## Sample Apex Request

<namespace>OffPlatformCallout request = new <namespace>.OffPlatformCallout('COMMIT\_RTR\_EXPORT','<salesorg>');
Map<String, Object> data = new Map<String, Object>();
data.put('metaname','ReportData0001');
data.put('salesorg', '0001');
data.put('businessyear',2020);
String requestBodyContent = JSON.serialize(data, true);
Map<String, String> params = new Map<String, String>();
params.put('csvGuid', '<CSV Guid received as response from Triggering CSV Export>');
<namespace>.OffPlatformCalloutResponse response = request.execute(<namespace>.TransactionHandler.getTransactionIdentifier(), params, requestBodyContent);
System.debug(response);

## Sample Response

{
  "csvGuid": "94f49a3f-37bc-4794-8051-123456789",
  "commitdate": "Thu, 16 Sep 2021 13:04:23 GMT"
}