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
+25-9Lines changed: 25 additions & 9 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, then select previously configured Enrichments from the Event Properties tab.
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,29 +200,45 @@ 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
+
Segment supports 4 static value types in Destination Actions mappings: string, boolean, number, and null.
207
+
* To create a string static value, type the string directly into the input field.
208
+
* To create boolean, number, and null values, use the **Static values** tab to create the appropriate static value based on its type.
209
+
210
+
## Functions
211
+
In Destination Actions mappings, functions transform event data before it sends to the destination. This enables custom data handling, such as selecting non-null values or formatting fields.
204
212
205
213
### Coalesce function
206
214
207
215
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
216
217
+
### Case function
218
+
219
+
The case function allows you to change the casing of a given string value.
220
+
221
+
### JSON function
222
+
223
+
The JSON function allows you to convert an object or array to a JSON encoded string, or to convert from JSON to objects.
224
+
225
+
### Flatten function
226
+
227
+
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 }.
228
+
209
229
### Replace function
210
230
211
231
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.
212
232
213
233
### Concatenate function
214
234
215
-
To combine two values in the event variable field, you can concatenate them using plain text and variables together. For example, to prepend the country code to a phone number, enter `+1{{Phone Number}}`.
235
+
To combine 2 values in the event variable field, you can concatenate them using plain text and variables together. For example, to prepend the country code to a phone number, enter `+1{{Phone Number}}`. Segment evaluates this field as a string, so placing text next to a variable automatically concatenates them.
216
236
217
-
Segment evaluates this field as a string, so placing text next to a variable automatically concatenates them.
237
+
You can't concatenate event variables and plain text with static values and functions. Adding a static value or function into an input field replaces any previously added event variables and plain text.
218
238
219
239

220
240
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
241
+
## Conditions
226
242
227
243
> info ""
228
244
> Self-service users can add a maximum of two conditions per Trigger.
0 commit comments