Triggering CSV Exports
Trigger five CSV exports simultaneously. The CSV exports are generated asynchronously in
the backend. A subsequent endpoint provides the status of the generation.
Endpoint
SCHEDULE_RTR_EXPORT
Request Parameters
Parameter | Mandatory | Type |
---|---|---|
businessyear | Yes | Integer |
metaname | Yes | String |
salesorg | Yes | String |
Sample Request Body
<namespace>.OffPlatformCallout request = new
<namespace>.OffPlatformCallout('SCHEDULE_RTR_EXPORT','0001');
Map<String, Object> data = new Map<String, Object>();
data.put('metaname','AccountAndPromotionMeasures');
data.put('salesorg', '0001');
data.put('businessyear',2022);
String requestBodyContent = JSON.serialize(data, true);
Map<String, String> params = new Map<String, String>();
<namespace>.OffPlatformCalloutResponse response = request.execute(<namespace>.TransactionHandler.getTransactionIdentifier(), params, requestBodyContent);
System.debug(response);
Sample Response Body
{
"csvGuid": "94f49a3f-37bc-4794-8051-123456789"
}