Skip to content

Commit 95f154e

Browse files
Update actions.md
1 parent 50e6959 commit 95f154e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/connections/destinations/actions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ You can't concatenate event variables and plain text with static values and func
241241
### Liquid syntax
242242
The liquid syntax function allows you to transform event data with fine-grain control before it reaches cloud-mode destinations using the LiquidJS templating language. Use Liquid templates to clean, format, or conditionally transform data such as user properties, timestamps, or event metadata to meet the requirements of your downstream tools. Liquid templates are applied in the Mappings tab of your Segment workspace, ensuring seamless integration with your event pipeline.
243243

244-
### Supported liquid tags and filters
244+
#### Supported liquid tags and filters
245245
The following LiquidJS tags and filters are supported for Segment mappings. These are carefully selected to ensure performance, security, and compatibility with real-time event processing. Unsupported tags and filters are disabled to prevent performance degradation or security risks.
246246

247-
### Supported tags
247+
#### Supported tags
248248
| Tag Name | Description |
249249
|-------------------|-------------|
250250
| `assign` | Assigns a value to a variable for reuse in the template. |
@@ -262,7 +262,7 @@ The following LiquidJS tags and filters are supported for Segment mappings. Thes
262262
| `unless` | Executes logic if a condition is not true (negation of `if`). |
263263
| `when` | Part of `case` statements for matching specific values. |
264264

265-
### Supported filters
265+
#### Supported filters
266266
| Filter Name | Description |
267267
|--------------------------------|-------------|
268268
| `abs` | Returns the absolute value of a number. |
@@ -329,10 +329,10 @@ The following LiquidJS tags and filters are supported for Segment mappings. Thes
329329
| `where` | Filters an array based on a property and value. |
330330
| `xml_escape` | Escapes characters for XML compatibility. |
331331

332-
### Examples
332+
#### Examples
333333
Below are two examples demonstrating how to use Liquid templates in Segment mappings to transform event data for cloud-mode destinations. These examples showcase common use cases like string manipulation and conditional logic.
334334

335-
#### Example 1: Standardize email addresses
335+
##### Example 1: Standardize email addresses
336336
This example converts an email address to lowercase and removes extra whitespace, ensuring consistency for a destination.
337337

338338
```json
@@ -351,7 +351,7 @@ Explanation:
351351
* The `strip` filter removes leading/trailing whitespace.
352352
* The `default` filter provides a fallback email if the input is missing.
353353

354-
#### Example 2: Transform phone number with conditional logic
354+
##### Example 2: Transform phone number with conditional logic
355355
This example formats a phone number by removing non-digit characters, adding a country code, and prepending a plus sign.
356356

357357
```json

0 commit comments

Comments
 (0)