Newer Version Available

This content describes an older version of this product. View Latest

getAccountSets

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.

Input Parameters

Name Type Required Description
promotionId String YES ID of the promotion.
inStoreDateFrom String YES New start date of the promotion.

Input Sample

1"source": {
2    "class": "CopyPromotionWizardCallable",
3    "method": "getAccountSets",
4    "cache": true,
5    "params": {
6        "promotionId": "{! promotionId }",
7        "inStoreDateFrom": "{! promoDateFrom }"
8    }
9}

Response Sample

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]

Response Properties

Name Description
Id ID of the Account.
Name Name of the Account.