---
schema_version: "1"
id: 6ec1b362d15ac0490f54fbfc3ffeff16a661143c9bd0c5660e21cc9171b65b0e
title: Schedule Global Account Product List
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/cgtpm_schedule_global_account_prod_list.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/cgtpm_schedule_global_account_prod_list.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 38c5556a78551ed5e7fb3c1637171899f1d3667fe22891a968e5bcd22f1080e3
description: Schedules a job to update the global account product list.
---
# Schedule Global Account Product List

Schedules a job to update the global account product list.

Soft limits:

- Maximum number of accounts based on AccountLoaderMaxNumberOfAccounts. Default value is 1000.

![Note](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/images/icon_note.png)

#### Note

The jobthreads value of 1 is intentional for this endpoint and should remain unchanged.

## Resource

SCHEDULE\_GLOBAL\_ACCOUNT\_PRODUCT\_LIST

## Available version

55.0

## Apex Request Example

// Logical endpoint name
String endpointName = 'SCHEDULE\_GLOBAL\_ACCOUNT\_PRODUCT\_LIST';
// name of the salesorg for which the API must be scheduled
String salesOrg = '0001';
<namespace>.OffplatformCallout callout = new <namespace>.OffplatformCallout(endpointName, salesOrg);
// Log Transaction Id
String txId = <namespace>.TransactionHandler.getTransactionIdentifier();
// Account Id for which the products in the global apl should be retrieved
Id accountId = '001B000001Q48yMIAR'; // Kroger Atlanta
Map<String, String\> urlParameters = new Map<String,String\>();
Map<String, Object\> payloadParams = new Map<String, Object\>();
payloadParams.put('jobname', 'GlobalAPLUpdate');
payloadParams.put('salesorg', salesOrg);
payloadParams.put('accountids', new List<Id>{accountId}); // up to 1000 accounts
payloadParams.put('refreshaccountproductlist', false); // add only new products or recalculate completely
payloadParams.put('batchchain', 'TPM\_Calculation\_Chain\_<timestamp>');
payloadParams.put('jobthreads',  1);
String payload = JSON.serialize(payloadParams);
<namespace>.OffplatformCalloutResponse response = callout.execute(txId, urlParameters, payload);
if (response.status != 200) {
   // Handle error and return error info to caller
}