Skip to content

Commit

Permalink
fix(INT-591): added support of id parameter for update events (#2595)
Browse files Browse the repository at this point in the history
fix(iterable): added support of id parameter for update events
  • Loading branch information
mihir-4116 authored Sep 12, 2023
1 parent e003f37 commit a2a9c37
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/v0/destinations/iterable/data/IterableTrackConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
],
"required": false
},
{
"destKey": "id",
"sourceKeys": ["properties.id", "properties.event_id"],
"required": false
},
{
"destKey": "eventName",
"sourceKeys": "event",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"destKey": "id",
"sourceKeys": "properties.orderId",
"sourceKeys": ["properties.orderId", "properties.id", "properties.event_id"],
"required": false
},
{
Expand Down
3 changes: 3 additions & 0 deletions test/__tests__/data/iterable.json
Original file line number Diff line number Diff line change
Expand Up @@ -3078,6 +3078,7 @@
},
"messageId": "node-570110489d3e99b234b18af9a9eca9d4-6009779e-82d7-469d-aaeb-5ccf162b0453",
"properties": {
"id": "event1234",
"subject": "resume validate",
"sendtime": "2020-01-01",
"sendlocation": "[email protected]"
Expand All @@ -3102,9 +3103,11 @@
"JSON_ARRAY": {},
"FORM": {},
"JSON": {
"id": "event1234",
"userId": "abcdeeeeeeeexxxx102",
"createdAt": 1598631966468,
"dataFields": {
"id": "event1234",
"subject": "resume validate",
"sendtime": "2020-01-01",
"sendlocation": "[email protected]"
Expand Down

0 comments on commit a2a9c37

Please sign in to comment.