---
schema_version: "1"
id: e235780aba3a6ec8f6ff4fca17bc15d2d29559556346dd5bba780ce205008bb8
title: ScheduleTPMAccrualProcessChain Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/global_tpm_accrual_process.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/global_tpm_accrual_process.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d908d567d38d090d52737811a35b1811a40b0e66fc44db7f8b568675be475ef3
description: This Apex class initiates TPM Accrual Process orchestrator after ensuring the accrual export configuration is successfully updated.
---
# ScheduleTPMAccrualProcessChain Class

This Apex class initiates TPM Accrual Process orchestrator after ensuring the accrual export configuration is successfully updated.

## Namespace

cgcloud

## Constructors

The following are the two constructors for ScheduleTPMAccrualProcessChain.

- **ScheduleTPMAccrualProcessChain(Date referencedate, List<String> salesorgs, String ingestionmode)**
- **ScheduleTPMAccrualProcessChain()**

## ScheduleTPMAccrualProcessChain(Date referencedate, List<String> salesorgs, String ingestionmode)

Schedules the accrual process chain at a specific reference date, based on the list of provided sales organizations, and with a specific mode of operation.

**API Version:** 65.0 and later

**Signature**

global ScheduleTPMAccrualProcessChain(Date referencedate, List<String> salesorgs, String ingestionmode)

**Signature Parameters**

- referencedate: Enter the reference date in date format.
- salesorgs: Enter the list of sales org names.
- ingestionmode: Enter the type of ingestion mode. The supported values are initial, partial, and full.

## ScheduleTPMAccrualProcessChain()

Schedules the Accrual Process Chain at the current date, based on all sales organizations with accruals enabled, and with mode of operation initial.

**API Version:** 65.0 and later

**Signature**

global ScheduleTPMAccrualProcessChain()

## Methods

The following method is available for ScheduleTPMAccrualProcessChain.

- **global void execute(SchedulableContext context)**

## SchedulableContext context

This method executes the scheduled Apex job.

**API Version:** 65.0 and later

**Signature**

global void execute(SchedulableContext context)

**Signature Parameters**

- context: Enter the Apex job ID that needs to be executed.

- **[Best Practices: Claim Processing Through Apex Batch](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/tpm_best_practices_accruals_claims.htm)**  
    Claim processes in Consumer Goods Cloud Trade Promotion Management (TPM) is done through user interface.