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.
getAccounts
This method returns the list of accounts valid for the period
defined by the input date from and the date through.
Input Parameters
| Name | Description |
|---|---|
| dateFrom | Valid account start date |
| dateThru | Valid account end date |
Input Sample
1{
2 "class": "NewPromotionWizardCallable",
3 "method": "getAccounts",
4 "cache": true,
5 "params": {
6 "dateFrom": "{! promoDateFrom }",
7 "dateThru": "{! promoDateThru }"
8 }
9}Response Sample
1[
2 {
3 "Name": "*Kroger Atlanta",
4 "Id": "0012X000023GAClQAO"
5 },
6 {
7 "Name": "*Kroger Store #201",
8 "Id": "0012X000023GACxQAO"
9 },
10 {
11 "Name": "*Safeway South-East",
12 "Id": "0012X000023GAC5QAO"
13 },
14 {
15 "Name": "+Kroger Detroit",
16 "Id": "0012X000023GACWQA4"
17 }
18]Response Properties
This method returns a list of items with the following properties:
| Name | Description |
|---|---|
| Id | Account SFDC ID |
| Name | Account Name. |