この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Schedule Adhoc Promotion Calculation

アドホックトランザクションでは、プラットフォーム外の計算で 1 つのプロモーションをスケジュールします。

最初に BEGIN_JOB_SCHEDULING_TRANSACTION 要求を使用してトランザクションを登録し、プラットフォーム外の計算をスケジュールする必要があります。

リソース
1SCHEDULE_ADHOC_PROMOTION_CALCULATION
使用可能なバージョン
55.0
要求パラメータ
名前 説明 必須か省略可能
adhocTransactionId String アドホックトランザクションレコードの ID。 必須
salesOrg String セールス組織の ID。 必須
promotion Object Promotion オブジェクト。 必須
Apex 要求の例
1// name of the salesorg for which the promotion belongs to
2String salesOrg = '0001';
3
4// Adhoc Transaction Id obtained from previous call
5String adhocTransactionId = 'xxxx-xxxx-xxxxxxxx-xxxx-xxxx';
6
7// Promotion id
8String promotionId = 'xxx000000000001';
9
10<namespace>.OffPlatformCallout callout = new <namespace>.OffPlatformCallout(
11      'SCHEDULE_ADHOC_PROMOTION_CALCULATION',
12      salesOrg
13);
14
15// Do request
16<namespace>.OffplatformCalloutResponse response = callout.execute(
17    txId,
18    new Map<String, String> { 'promotionId' => promotionId },
19    JSON.serialize(new Map<String, Object> {
20       'adhoctransactionid' => adhocTransactionId,
21       'salesorg' => salesOrg,
22       'promotion' => new <namespace>.PromotionWebServiceCall.WSRequestBodyV1(....)
23    })
24);
25
26if (response.status != 200) {
27    // Handle error
28}