Committing CSV Export
Generally, there are two types of CSV exports generated by the system—a full and a delta export.
- 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" }