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.

getAccountSets

This method returns the list of account sets valid for the period defined by the input date from and date through.

Input Parameters

Name Description
dateFrom Valid Account start date
dateThru Valid Account end date

Input Sample

1{
2    "class": "NewPromotionWizardCallable",
3    "method": "getAccountSets",
4    "cache": true,
5    "params": {
6        "dateFrom": "{! promoDateFrom }",
7        "dateThru": "{! promoDateThru }"
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

This method returns a list of items with the following properties:
Name Description
Id Account Set SFDC Id
Name Account Set Name.