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 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.