Skip to content

Commit 3b60054

Browse files
Update actions.md
1 parent 609baa6 commit 3b60054

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

src/connections/destinations/actions.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ If necessary, click **New Mapping** to create a new, blank action.
183183
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.
184184
3. Select data models to [enrich your events](/docs/unify/linked-profiles/linked-events/) with.
185185
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.
187187
5. Test the mapping with data from a sample event.
188188
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.
189189
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.
200200
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).
201201

202202
> 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.
204210

205211
### Coalesce function
206212

207213
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.
208214

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+
209227
### Replace function
210228

211229
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
218236

219237
![Mapping UI showing two concatenated fields: "+1 phone" and "context.page.url context.page.path"](images/mapping-concatenation.png)
220238

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
226240

227241
> info ""
228242
> Self-service users can add a maximum of two conditions per Trigger.

0 commit comments

Comments
 (0)