Get Started with Consumer Goods Cloud
Derive and Copy Promotions with MetadataWizard and Business Object API
getPromotion
getAccounts
getAccountSets
IsPromotionTemplateCopyable
isPromotionAndUserSameSalesOrg
API End-of-Life Policy
Previous Versions
This method returns the list of account sets valid for the target promotion. Target promotion timeframe is calculated by the difference in days between the original promotion date and the new date.
| Name | Type | Required | Description |
|---|---|---|---|
| promotionId | String | YES | ID of the promotion. |
| inStoreDateFrom | String | YES | New start date of the promotion. |
1"source": {
2 "class": "CopyPromotionWizardCallable",
3 "method": "getAccountSets",
4 "cache": true,
5 "params": {
6 "promotionId": "{! promotionId }",
7 "inStoreDateFrom": "{! promoDateFrom }"
8 }
9}1[[
2 {
3 "Name": "Prio A customers in Area 47*",
4 "Id": "a0G2X00002jffpwUAA"
5 },
6 {
7 "Name": "seg15feb2021",
8 "Id": "a0G7R00002n1zzoUAA"
9 },
10 {
11 "Name": "South",
12 "Id": "a0G2X00002jffpzUAA"
13 }
14]| Name | Description |
|---|---|
| Id | ID of the Account. |
| Name | Name of the Account. |