Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

JobStatusNotificationService Class

Processes job status notifications from external batch processing systems for Trade Promotion Management operations.

Use this Apex REST class to receive job status notifications from external batch processing systems. The class processes HTTP POST requests that contain job execution status information for Trade Promotion Management (TPM) operations. When a notification is received, the class validates TPM licensing, parses the notification payload, and routes status updates to the appropriate handler.

Namespace

cgcloud

doPost(notification)

Processes job status notification payloads received through HTTP POST requests. The method validates TPM licensing, parses the incoming JSON notification, identifies the job chain type, and delegates processing to the appropriate handler. Comprehensive logging and error handling are implemented for JSON parsing errors and general exceptions.

Signature of the Method

@HttpPost global static void doPost(String notification)

Parameters

notification: String
A JSON payload that contains job status notification details, including job chain ID, job ID, batch run status, job type, sales organization, status information, item statistics, timestamps, duration, and process count.

Return Value

Type: void