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.

getPromotionKPIs

This method returns the list of editable and editable calculated KPIs on promotion level for the input promotion template

Input Parameters

Name Description
promoTemplate SFDC ID of the promotion template.

Input Sample

1{
2    "class": "NewPromotionWizardCallable",
3    "method": "getPromotionKPIs",
4    "params": {
5        "promoTemplate": "{! promoTemplate.Id }"
6    },
7    "cache": true
8}

Response Sample

1[
2    {
3        "ValueDecimalPlaces": 0,
4        "Name": "Promotion Volume",
5        "Id": "PromoPlanSellOutVol"
6    },
7    {
8        "ValueDecimalPlaces": 2,
9        "Name": "Promoted Price",
10        "Id": "PromoPlanPromotedPrice"
11    }
12]

Response Properties

This method returns a list of items with the following properties:
Name Description
Id KPI name
Name KPI description label.
ValueDedimalPlaces

Maximum number of decimal places expected for a value of the KPI based on the KPI Type

Possible Values:
  • Money: 2
  • Percentage: 2
  • Price: 2
  • Volume: 0
  • None: 10