Newer Version Available

This content describes an older version of this product. View Latest

DRExtractfirstPromoItem

This Omnistudio Data Mapper extracts the promotional item with the promotion ID, for the specified product codes.

Sample Input

1{
2  "Promo": [
3    {
4      "ProdCode": "VPL-PlayBundesliga"
5    },
6    {
7      "ProdCode": "VPL-PlayMarvel"
8    },
9    {
10      "ProdCode": "VPL-PlayDisney"
11    }
12  ]
13}

Parameter

Required/Optional

ProdCode

Required

Promo

Required

Sample Output

1{
2  "Promo": [
3    {
4      "Promoitem": {
5        "Name": "PromotionItem__ca3x3h000000LkS6",
6        "vlocity_cmt__ProductId__c": "01t4W00000CYET4QAP"
7      },
8      "ProductCode": "VPL-PlayBundesliga",
9      "Id": "a3z4W000000gnY3QAI"
10    },
11    {
12      "Promoitem": {
13        "Name": "PromotionItem__ca3x3h000000LkNZ",
14        "vlocity_cmt__ProductId__c": "01t4W00000CYESuQAP"
15      },
16      "ProductCode": "VPL-PlayDisney",
17      "Id": "a3z4W000000gnY2QAI"
18    },
19    {
20      "Promoitem": {
21        "Name": "PromotionItem__ca3x3h000000LkRm",
22        "vlocity_cmt__ProductId__c": "01t4W00000CYESnQAP"
23      },
24      "ProductCode": "VPL-PlayMarvel",
25      "Id": "a3z4W000000gnY2QAI"
26    }
27  ]
28}

Called By

  • Workflow: Recommendation
    • LWC: vplS360Bundesliga.js
      • Integration Procedure: VPL360_IPExtractPromo