1// name of the salesorg for which the hob should be scheduled
2String salesOrg = '0001';
3<namespace>.JobSchedulingCommitCallout callout = new <namespace>.JobSchedulingCommitCallout(salesOrg);
4
5// Log Transaction Id
6String txId = <namespace>.TransactionHandler.getTransactionIdentifier();
7
8// Job object
9<namespace>.Job job = new <namespace>.Job();
10job.JobChainName = 'TPM_Calculation_Chain_<timestamp>';
11job.JobName = 'PromotionCalculation';
12
13<namespace>.OffplatformCalloutResponse response = callout.execute(txId, job);
14
15if (response.status != 200) {
16 // Handle error
17}