Skip to content

Commit 68b30b7

Browse files
Merge pull request #4376 from segmentio/vanand17-patch-9
Update Transformation doc
2 parents bc765b1 + bbc5878 commit 68b30b7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/protocols/transform/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,17 @@ Depending on the type of transformation you selected, you will need to enter the
9595
After you select the scope, use the search box to choose the event to transform. You can **only** select a single track event, identify or group call. If you are renaming the event, simply enter the new name in the provided text field.
9696

9797
* **Rename properties or traits:**
98-
If you rename properties or traits within a selected event, click **+ Add Property**. The dropdown that appears contains the properties or traits sent with the selected event. Segment supports JSON Path notation to select nested objects up to four levels deep. For example, `order.id` selects the `id` property in the `order` object. Segment does not support `.$.` notation to select a property from an array of objects.
98+
To rename properties or traits within a selected event, click **+ Add Property**. The dropdown that appears contains the properties or traits sent with the selected event. Segment supports JSON Path notation to select nested objects up to four levels deep. For example, `order.id` selects the `id` property in the `order` object. Segment does not support `.$.` notation to select a property from an array of objects. For example, the following event, which generates `products.$.product_id`, is unsupported.
99+
100+
```js
101+
analytics.track('Example', {
102+
products: [{
103+
product_id: "123"
104+
}],
105+
})
106+
```
107+
108+
In this scenario, we do not support the transformation of product_id.
99109

100110
After selecting a property/trait, select JSON Path or Simple String to change the property/trait. Simple string will change the name in-line, while JSON path allows you to move the property/trait in or out of an object.
101111

0 commit comments

Comments
 (0)