Functions functions
Functions are the building blocks of dynamic journey expressions in Adobe Journey Optimizer. They enable you to transform, calculate, validate, and manipulate data in real-time to create personalized customer experiences. With over 60 functions organized into intuitive categories, you can build sophisticated conditions, perform complex calculations, and make data-driven decisions at every step of the customer journey.
Understanding functions
Functions in journey expressions follow a consistent syntax pattern:
<function name>(<expression as param 1>, <expression as param 2>, … ,<expression as param N>)
Key characteristics:
- Multiple signatures: A function can have different signatures (different sets of ordered parameters) to accommodate various use cases
- Type-specific returns: Each function has a specific returned type (string, integer, boolean, date, list, etc.)
- Zero to N parameters: Functions can accept 0-N expressions as ordered parameters, providing flexibility in how you use them
Why use functions?
Functions empower you to:
- Create dynamic conditions - Branch journey paths based on real-time data evaluation
- Personalize at scale - Tailor content and experiences using customer data and behavioral insights
- Automate decisions - Build intelligent logic without manual intervention
- Transform data - Convert, format, and manipulate data types to ensure compatibility
- Perform calculations - Execute mathematical operations and statistical analysis
- Validate inputs - Check data quality and completeness before taking action
Functions by category
Browse functions organized by their primary purpose to quickly find the right tool for your needs.
Adobe Experience Platform aep-functions
Audience segmentation and targeting
Evaluate audience membership to create personalized journey paths based on customer segments defined in Adobe Experience Platform.
View Adobe Experience Platform function details →
Aggregation functions aggregation-functions
Statistical calculations and data summarization
Perform calculations on sets of values to derive insights such as averages, counts, sums, and min/max values. Essential for data-driven decision making.
View all aggregation functions →
Conversion functions conversion-functions
Data type transformation
Convert data between different types (string, integer, decimal, boolean, date, duration) to ensure compatibility across operations and data sources.
Date functions date-functions
Date and time manipulation
Work with dates, times, and timezones to create time-based conditions, schedule actions, and perform temporal calculations.
List functions list-functions
Collection manipulation and analysis
Filter, sort, transform, and analyze arrays and lists to work with complex data structures and perform set operations.
Math functions math-functions
Mathematical operations
Perform numerical calculations and transformations for data processing and business logic.
String functions string-functions
Text manipulation and validation
Process, transform, search, and validate text data for dynamic content creation and conditional logic.
Next steps
Now that you understand the available functions, explore:
- Advanced expression editor - Learn how to build complex expressions using the advanced editor
- Expression syntax - Master the syntax rules for writing journey expressions
- Operators - Discover operators you can use with functions to build logic
- Field references - Understand how to reference data fields in your expressions
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: This page is a categorized reference of all 60+ built-in functions available in the Journey advanced expression editor, covering aggregation, conversion, date/time, list, math, string, and Adobe Experience Platform audience functions.
Intents:
- Identify the right function for a task by browsing the categorized function tables
- Transform data types between string, integer, decimal, boolean, date, and duration using conversion functions
- Perform date-based filtering with functions like
inLastDays,inNextHours, andnowWithDelta - Manipulate and validate string values using functions like
contain,replace,split, andtrim - Perform statistical calculations on collections using aggregation functions like
count,avg,sum, anddistinctCount - Check audience membership in journey conditions using the
inAudiencefunction
Glossary:
- Aggregation functions: Functions that compute a single value (count, sum, average, min, max) from a collection of values (product-specific)
- Conversion functions: Functions that cast a value from one data type to another (e.g.
toString,toDateTime,toDuration) (product-specific) - Date functions: Functions for working with date, time, and timezone values in journey expressions (product-specific)
- List functions: Functions for filtering, sorting, and analyzing array/collection data (product-specific)
- inAudience: A function that checks whether a profile belongs to a specified Adobe Experience Platform audience segment (product-specific)
Guardrails:
- Functions follow a consistent syntax:
functionName(param1, param2, ...) - A function may have multiple signatures (different parameter sets) to handle different use cases
- Each function has a fixed return type — ensure the return type matches what the expression context expects
- The functions available in the Journey expression editor differ from those in the personalization editor
Terminology:
- Canonical name: Functions — Acronym: none — variants: built-in functions, expression functions
- Synonyms: “aggregation functions” = “statistical functions”; “conversion functions” = “type casting functions”
- Do not confuse: journey expression functions ≠ personalization editor functions (different sets)
FAQ:
- Q: How many functions are available in the Journey expression editor? — Over 60 functions organized across categories including aggregation, conversion, date, list, math, string, and Adobe Experience Platform.
- Q: How do I check if a profile belongs to an audience in a journey condition? — Use the
inAudiencefunction with the audience identifier. - Q: What function should I use to get the current date and time offset by a number of days? — Use
nowWithDelta(N, "days")to get a dateTime offset from the current time. - Q: Can a function return different types depending on how it is called? — A function has a specific return type per signature, but a single function name can have multiple signatures with different parameter sets and return types.
- Q: What is the difference between
countandcountWithNull? —countcounts only non-null elements;countWithNullcounts all elements including nulls.