---
schema_version: "1"
id: af7011c38306cd791107e5cecd9f2db9b9972171968dfd02759c1cf0f2c7714b
title: getAccountSets
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/getAccountSets.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/getAccountSets.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c50e59380c987b20127e96ad683af1f31fb7bf91710956d7ab64698e41476f78
description: This method returns the list of account sets valid for the period defined by the input date from and date through.
---
# 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

{
    "class": "NewPromotionWizardCallable",
    "method": "getAccountSets",
    "cache": true,
    "params": {
        "dateFrom": "{! promoDateFrom }",
        "dateThru": "{! promoDateThru }"
    }
}

## Response Sample

\[
    {
        "Name": "Prio A customers in Area 47\*",
        "Id": "a0G2X00002jffpwUAA"
    },
    {
        "Name": "seg15feb2021",
        "Id": "a0G7R00002n1zzoUAA"
    },
    {
        "Name": "South",
        "Id": "a0G2X00002jffpzUAA"
    }
\]

## Response Properties

This method returns a list of items with the following properties:

| Name | Description |
| --- | --- |
| Id | Account Set SFDC Id |
| Name | Account Set Name. |