---
schema_version: "1"
id: 67dd693c9000aa53e524f9e410faf78360e9c1f6564184186e6563f325f95889
title: getAccountSets
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/copy_promotion_getaccountsets.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/copy_promotion_getaccountsets.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6fdf7c08f5cc3d104f446106a50d3f233b866d151adf9fa3d0a547df06896099
description: 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.
---
# 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

"source": {
    "class": "CopyPromotionWizardCallable",
    "method": "getAccountSets",
    "cache": true,
    "params": {
        "promotionId": "{! promotionId }",
        "inStoreDateFrom": "{! promoDateFrom }"
    }
}

## Response Sample

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

## Response Properties

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