Loading
Set Up Trade Promotion Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Abort Export Process

          Abort Export Process

          When an export process is running for a longer duration than expected, it consumes resources and blocks the scheduling of new exports. The following Abort Export code snippet unblocks the scheduling by aborting the export process.

          Note
          Note Replace <NAMESPACE>,<METADATA_INTERNAL_NAME>, and <SALES_ORG_NAME> with values specific to your org.

          Sample Apex Request

          <NAMESPACE>.OffPlatformCallout request = new <NAMESPACE>.OffPlatformCallout('ABORT_EXPORT_PROCESS','<SALES_ORG_NAME>'); // Example '0001'
          Map<String, String> data = new Map<String, String>();
          data.put('csvGuid','<REQUEST_ID>'); // example '11b19630-08f0-4f57-8e14-1778c0d3abde'
          data.put('metaname', '<METADATA_INTERNAL_NAME>'); // example DCTest1
          <NAMESPACE>.OffPlatformCalloutResponse response = request.execute(<NAMESPACE>.TransactionHandler.getTransactionIdentifier(), params, null);
          System.debug('execution information:' + response);
          
           
          Loading
          Salesforce Help | Article