Newer Version Available
Clone Promotion
Clone an existing promotion along with its associated records
- Resource
-
1/promotions/clone - Available version
- 61.0
- HTTP methods
- POST
- JSON example
-
1{ 2 "sourcePromotionId": "0c8xx00000000WHAAY", 3 "name": "ups clone 4", 4 "startDateTime": "2024-01-08T00:00:00.000Z", 5 "endDateTime": "2024-01-09T00:00:00.000Z", 6 "promotionCode": "sdfgy543wsd", 7 "doesReuseEngagementAttributes":"true", 8 "additionalFieldValues": { 9 "additionalFieldValuesMap": { 10 "Description": "test ups clone" 11 } 12 }, 13 "relatedRecords": { 14 "relatedRecordsList": [ 15 { 16 "relatedObjectApiName": "PromotionChannel", 17 "relatedObjectPromotionFieldName": "PromotionId" 18 }, 19 { 20 "relatedObjectApiName": "PromotionLoyaltyPtnrProdt", 21 "relatedObjectPromotionFieldName": "PromotionId" 22 }, 23 { 24 "relatedObjectApiName": "PromotionMarketSegment", 25 "relatedObjectPromotionFieldName": "PromotionId" 26 }, 27 { 28 "relatedObjectApiName": "PromotionProduct", 29 "relatedObjectPromotionFieldName": "PromotionId" 30 }, 31 { 32 "relatedObjectApiName": "PromotionProductCategory", 33 "relatedObjectPromotionFieldName": "PromotionId" 34 }, 35 { 36 "relatedObjectApiName": "PromotionLimit", 37 "relatedObjectPromotionFieldName": "PromotionId" 38 } 39 ] 40 } 41} - Properties
-
Name Type Description Required or Optional Available Version additionalFieldValues Map<String, String> The details of the promotion's additional fields. Small, 61.0 61.0 doesReuseEngagementAttributes Boolean Indicates whether the new promotion uses the engagement attributes created for the source promotion to track customers' promotion usage. Small, 61.0 61.0 endDateTime String The end date and time of the new promotion. Small, 61.0 61.0 name String The name of the new promotion. Small, 61.0 61.0 promotionCode String The code of the new promotion. Small, 61.0 61.0 relatedRecords Related Promotion Records Input [] The related record for the source promotion that have to be created for the new promotion. Small, 61.0 61.0 sourcePromotionId String The ID of the promotion that's cloned. Small, 61.0 61.0 startDateTime String The start date and time of the new promotion. Small, 61.0 61.0
- Response body for POST
- Clone Promotion Output