---
schema_version: "1"
id: 2a46346ad8de00b4e8c7cff2c6377f45920a1621466c86bff114be657e02760d
title: getPromotion
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/copy_promotion_getpromotions.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/copy_promotion_getpromotions.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e8192123addc2ebe73d88e3e5828e9c47ea99ced44f48217e90705d921fec638
description: This method returns the requested fields for the given promotion ID.
---
# getPromotion

This method returns the requested fields for the given promotion ID.

## Input Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| promotionId | String | YES | ID of the promotion. |
| fields | List<String> | YES | List of fields for which the details are required. |

## Input Sample

"source": {
        "class": "CopyPromotionWizardCallable",
        "method": "getPromotion",
        "cache": false,
        "params": {
          "promotionId": "{! \_input\_.promotionId }",
          "fields": \[
            "Id",
            "cgcloud\_\_Slogan\_\_c",
            "cgcloud\_\_Placement\_Date\_From\_\_c",
            "cgcloud\_\_Anchor\_Account\_\_c",
            "cgcloud\_\_Anchor\_Account\_Set\_\_c",
            "cgcloud\_\_Promotion\_Template\_\_r.cgcloud\_\_Anchor\_Type\_\_c"
          \]
        }
      }

## Response Sample

{
    "Id": : "a2a2X000004L7wPQAS",
    "cgcloud\_\_Slogan\_\_c": "TEST PROMOTION",
    "cgcloud\_\_Placement\_Date\_From\_\_c": "2024-01-01",
    "cgcloud\_\_Anchor\_Account\_\_c": "0012X000023GAClQAO",
    "cgcloud\_\_Anchor\_Account\_Set\_\_c": null,
    "cgcloud\_\_Promotion\_Template\_\_r.cgcloud\_\_Anchor\_Type\_\_c": "Customer"
}

## Response Properties

A single object with the requested properties.