---
schema_version: "1"
id: 103db2c3a36bbf1fb8b23d532b38063a2ca2fc5583001cb248019699c21802ef
title: Commit Job Scheduling Transaction
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/cgtpm_commit_job_sch_transaction.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/cgtpm_commit_job_sch_transaction.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9b5e821f09898c28fb3de772b941bf86ff6f65c584831003d1317cf8342780b8
description: Explicitly commit an open scheduling transaction for a job in a job chain.
---
# Commit Job Scheduling Transaction

Explicitly commit an open scheduling transaction for a job in a job chain.

## Resource

COMMIT\_JOB\_SCHEDULING\_TRANSACTION

## Available version

55.0

## Request Parameters

| Name | Type | Description | Required or Optional |
| --- | --- | --- | --- |
| jobChain | String | ID of the job chain record. | Required |
| jobId | String | ID of the job record for which scheduling transaction is to be started. | Required |

## Apex Request Example

// name of the salesorg for which the job should be scheduled
String salesOrg = '0001';
<namespace>.JobSchedulingCommitCallout callout = new <namespace>.JobSchedulingCommitCallout(salesOrg);
// Log Transaction Id
String txId = <namespace>.TransactionHandler.getTransactionIdentifier();
// Job object
<namespace>.Job job = new <namespace>.Job();
job.JobChainName = 'TPM\_Calculation\_Chain\_<timestamp>';
job.JobName = 'PromotionCalculation';
<namespace>.OffplatformCalloutResponse response = callout.execute(txId, job);
if (response.status != 200) {
   // Handle error
}