Newer Version Available
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
1<namespace>.OffPlatformCallout request = new
2<namespace>.OffPlatformCallout('SCHEDULE_RTR_EXPORT','0001');
3Map<String, Object> data = new Map<String, Object>();
4data.put('metaname','AccountAndPromotionMeasures');
5data.put('salesorg', '0001');
6data.put('businessyear',2022);
7
8String requestBodyContent = JSON.serialize(data, true);
9Map<String, String> params = new Map<String, String>();
10
11<namespace>.OffPlatformCalloutResponse response = request.execute(<namespace>.TransactionHandler.getTransactionIdentifier(), params, requestBodyContent);
12System.debug(response);Sample Response Body
1{
2 "csvGuid": "94f49a3f-37bc-4794-8051-123456789"
3}