Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Manual Inputs

This section provides information about manual inputs.

handleManualInputs2

  • Description: Handles the list of manual inputs provided.
  • Classname: Promotion2BoApiCoreWorkflowSteps
  • Method: handleManualInputs
Table 1. Input Properties
Property Description Required or Optional
.KPI Strings with 80 characters. Specifies the KPI Name to set. Required
.Value Numeric value. Value to set to the KPI. Required
.Product Product ID to set the KPI Value to. If not set, the KPI value is set as total for the promotion or tactic. The product ID can be specified as an SFDC ID or an external ID. Required

Workflow to set manual inputs on product, tactic, and promotion level.

Sample Request

1{
2    // Promotion information
3    Id: "Promo1ExternalId",
4    // .. rest of Promotion input attributes
5    ManualInputs: [
6        {
7            KPI: "ProPlanSpend",                // Name of the KPI
8            Product: "HiChoc",                  // Product to apply the KPI, external id of the product level
9            Value: 1234                         // Value of the KPI
10        }
11    ],
12    Tactics: [
13        {
14            // Tactic Information
15            Id: "Tactic1ExternalId",
16            // .. rest of Tactic input attributes
17            ManualInputs: [
18                {
19                    KPI: "ProPlanSpend",
20                    Product: "HiChoc",
21                    Value: 1234
22                }
23            ]
24        }
25    ]
26}