Newer Version Available
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
1"source": {
2 "class": "CopyPromotionWizardCallable",
3 "method": "getPromotion",
4 "cache": false,
5 "params": {
6 "promotionId": "{! _input_.promotionId }",
7 "fields": [
8 "Id",
9 "cgcloud__Slogan__c",
10 "cgcloud__Placement_Date_From__c",
11 "cgcloud__Anchor_Account__c",
12 "cgcloud__Anchor_Account_Set__c",
13 "cgcloud__Promotion_Template__r.cgcloud__Anchor_Type__c"
14 ]
15 }
16 }Response Sample
1{
2 "Id": : "a2a2X000004L7wPQAS",
3 "cgcloud__Slogan__c": "TEST PROMOTION",
4 "cgcloud__Placement_Date_From__c": "2024-01-01",
5 "cgcloud__Anchor_Account__c": "0012X000023GAClQAO",
6 "cgcloud__Anchor_Account_Set__c": null,
7 "cgcloud__Promotion_Template__r.cgcloud__Anchor_Type__c": "Customer"
8}Response Properties
A single object with the requested properties.