You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/actions.md
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ If necessary, click **New Mapping** to create a new, blank action.
183
183
This step looks for events that match the criteria in the [debugger queue](/docs/connections/sources/debugger/), so you might need to Trigger some events with the expected criteria to test your conditions. You can skip the test step if needed, and re-try it at any time.
184
184
3. Select data models to [enrich your events](/docs/unify/linked-profiles/linked-events/) with.
185
185
4. Set up the data mapping from the Segment format to the destination tool format.
186
-
- You can click the Source field, then select the **Enrichments** tab to view and select Enrichments to use.
186
+
- You can click the Source field and, from the **Event properties** tab, select previously configured Enrichments.
187
187
5. Test the mapping with data from a sample event.
188
188
The edit panel shows you the mapping output in the format for the destination tool. The **Select Object** option sends the entire object from the event, while the **Edit Object** option lets you map each individual property. You can change your mapping as needed and re-test.
189
189
6. When you're satisfied with the mapping, click **Save**. Segment returns you to the Mappings table.
@@ -200,12 +200,30 @@ If necessary, click **New Mapping** to create a new, blank action.
200
200
Segment offers suggested mappings that automatically propose relevant destination fields for both model columns and payload elements. For example, if your model includes a column or payload field named `transaction_amount`, the feature might suggest mapping it to a destination field like `Amount` or `TransactionValue`. This automation, powered by intelligent autocompletion, matches and identifies near-matching field names to streamline the setup. For more information, see [Segment's suggested mappings blogpost](https://segment.com/blog/ai-assisted-magical-mappings/){:target="_blank”} and the [Suggested Mappings Nutrition Label](/docs/connections/reverse-etl/suggested-mappings-nutrition-facts).
201
201
202
202
> warning ""
203
-
> Review the suggested mappings for accuracy before finalizing them as the suggestions aren't guaranteed to be 100% accurate.
203
+
> Review the suggested mappings for accuracy before finalizing them as the suggestions aren't guaranteed to be 100% accurate.
204
+
205
+
## Static values
206
+
We support four static value types in Destination Actions mappings: string, boolean, number, and null. To create a string static value, type the string directly into the input field. For boolean, number, and null values, use the new **Static values** tab to create the appropriate static value based on its type.
207
+
208
+
## Functions
209
+
In Destination Actions mappings, functions transform event data before it’s sent to the destination, enabling custom data handling like selecting non-null values or formatting fields.
204
210
205
211
### Coalesce function
206
212
207
213
The coalesce function takes a primary value and uses it if it is available. If the value isn't available, the function uses the fallback value instead.
208
214
215
+
### Case function
216
+
217
+
The case function allows you to change the casing of a given string value.
218
+
219
+
### JSON function
220
+
221
+
The JSON function allows you to convert an object or array to a JSON encoded string, or to convert from JSON to objects.
222
+
223
+
### Flatten function
224
+
225
+
The flatten function allows you to flatten a nested object to an object with a depth of 1. Keys are delimited by the configured separator. For example, an object like {a: { b: { c: 1 }, d: 2 } } will be converted to { 'a.b.c': 1, 'a.d': 2 }.
226
+
209
227
### Replace function
210
228
211
229
The replace function allows you to replace a string, integer, or boolean with a new value. You have the option to replace up to two values within a single field.
@@ -218,11 +236,7 @@ Segment evaluates this field as a string, so placing text next to a variable aut
218
236
219
237

220
238
221
-
### Flatten function
222
-
223
-
The flatten function allows you to flatten a nested object to an object with a depth of 1. Keys are delimited by the configured separator. For example, an object like {a: { b: { c: 1 }, d: 2 } } will be converted to { 'a.b.c': 1, 'a.d': 2 }.
224
-
225
-
### Conditions
239
+
## Conditions
226
240
227
241
> info ""
228
242
> Self-service users can add a maximum of two conditions per Trigger.
0 commit comments