함수 functions
함수는 Adobe Journey Optimizer에서 동적 여정 표현식의 기본 구성단위입니다. 이를 통해 실시간으로 데이터를 변환, 계산, 유효성 검사 및 조작하여 개인화된 고객 경험을 만들 수 있습니다. 60개 이상의 함수를 직관적인 카테고리로 구성하여 고객 여정의 모든 단계에서 정교한 조건을 구축하고, 복잡한 계산을 수행하고, 데이터 중심의 의사 결정을 내릴 수 있습니다.
함수 이해
여정 표현식의 함수는 일관된 구문 패턴을 따릅니다.
<function name>(<expression as param 1>, <expression as param 2>, … ,<expression as param N>)
키 특성:
- 여러 서명: 함수에는 다양한 사용 사례를 수용할 수 있도록 다른 서명(순서가 지정된 매개 변수의 다른 집합)이 있을 수 있습니다
- 유형별 반환: 각 함수에는 반환된 특정 유형(문자열, 정수, 부울, 날짜, 목록 등)이 있습니다.
- 0에서 N까지 매개 변수: 함수에서 0-N 식을 순서가 지정된 매개 변수로 사용할 수 있으므로 사용 방법에 유연성을 제공합니다.
함수를 사용하는 이유
함수를 통해 다음과 같은 작업을 수행할 수 있습니다.
- 동적 조건 만들기 - 실시간 데이터 평가를 기반으로 여정 경로 분기
- 규모에 맞게 개인화 - 고객 데이터 및 행동 통찰력을 사용하여 콘텐츠 및 경험 맞춤화
- 의사 결정 자동화 - 수동 개입 없이 지능형 논리 구축
- 데이터 변환 - 호환성을 보장하기 위해 데이터 형식을 변환, 서식 지정 및 조작합니다.
- 계산 수행 - 수학 연산 및 통계 분석 실행
- 입력 유효성 검사 - 작업을 수행하기 전에 데이터 품질 및 완전성을 확인하십시오.
범주별 함수
기본 목적에 따라 구성된 기능을 탐색하여 요구 사항에 적합한 도구를 신속하게 찾을 수 있습니다.
Adobe Experience Platform aep-functions
대상자 세분화 및 타깃팅
대상 멤버십을 평가하여 Adobe Experience Platform에 정의된 고객 세그먼트를 기반으로 개인화된 여정 경로를 만듭니다.
집계 함수 aggregation-functions
통계 계산 및 데이터 요약
값 집합에 대해 계산을 수행하여 평균, 개수, 합계 및 최소/최대 값과 같은 통찰력을 얻습니다. 데이터 중심의 의사 결정에 필수적입니다.
전환 함수 conversion-functions
데이터 형식 변환
작업과 데이터 소스 간의 호환성을 보장하기 위해 다양한 유형(문자열, 정수, 십진수, 부울, 날짜, 기간) 간에 데이터를 변환합니다.
날짜 함수 date-functions
날짜 및 시간 조작
날짜, 시간 및 시간대를 사용하여 시간 기반 조건을 만들고, 작업을 예약하며, 임시 계산을 수행합니다.
목록 함수 list-functions
컬렉션 조작 및 분석
배열과 목록을 필터링, 정렬, 변환 및 분석하여 복잡한 데이터 구조로 작업하고 교차, 결합 및 차이점 같은 집합 작업을 수행합니다.
수학 함수 math-functions
수학 연산
데이터 처리 및 비즈니스 논리를 위한 수치 계산 및 변환을 수행합니다.
문자열 함수 string-functions
텍스트 조작 및 유효성 검사
다이내믹 콘텐츠 생성 및 조건부 논리를 위해 텍스트 데이터를 처리, 변환, 검색 및 검증합니다.
다음 단계
사용 가능한 기능을 이해했으므로 다음을 살펴보십시오.
- 고급 표현식 편집기 - 고급 편집기를 사용하여 복잡한 표현식을 만드는 방법에 대해 알아봅니다.
- 식 구문 - 여정 식을 작성하기 위한 구문 규칙을 기본으로 제공합니다.
- 연산자 - 함수를 사용하여 논리를 빌드할 수 있는 연산자를 검색합니다.
- 필드 참조 - 식에서 데이터 필드를 참조하는 방법 이해
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,nowWithDelta, anddateDiff - 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: How can I calculate the difference between two dates? — Use the
dateDifffunction. Both parameters must be the same type:dateOnlyparameters return the difference in days, whiledateTimeOnlyanddateTimeparameters return the difference in milliseconds. - 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.