Overview
Extole’s configurable reporting framework lets you define exactly what data a report returns, how it is shaped, and which rows are included — all through a mapping expression language passed as report parameters. This document is a complete reference for that language. You set these expressions in the Advanced section of a report’s configuration screen — see Advanced Report Configuration. To pick which report type to run, see Configurable Report Types and Their Entities; for the fields each entity exposes, see Entities and Context Available in Extole’s Configurable Reporting System. If a pre-built report already answers your question, check Report Types first.Glossary
Mapping Syntax
Column Definition
name=expression pairs. The column name appears as the header in the report output.
Hidden Columns
Prefix a column name withhidden(...) to compute an intermediate value without including it in the output. Hidden columns can be referenced by name in subsequent expressions.
Accessing Event Properties
Direct property access on the primary record:Filter Syntax
Filters are semicolon-separated boolean expressions. All entries must be satisfied (implicit AND between statements).==, !=, >=, <=, >, <, like, not like
Values are quoted strings or column references:
collection(...) filter parameter, filters use and/or:
Sort Order
Comma-separated sort expressions applied in order:Functions Reference
Attribute Access
ATTRIBUTE / Direct Access
Returns a raw property from the event record. TheATTRIBUTE() wrapper is optional.
PROPERTY
Extracts a named field from a JSON string value. Parameters:(anonymous)— expression evaluating to a JSON string
TO_JSON
Converts a column value to its JSON string representation. Useful for text-based searches on complex objects. Parameters:(anonymous)— column to serialize
to_json(event) is not supported.
Scalar / Formatting Functions
BOOLEAN_FORMAT
Evaluates a condition and returns one of two values. Parameters:(anonymous, 1st)— condition expression(anonymous, 2nd)— value when condition is true(anonymous, 3rd)— value when condition is false
NUMBER_FORMAT
Formats a numeric value to decimal with scale 2. Parameters:(anonymous)— column with numeric value
DATE_FORMAT
Formats a timestamp value. Parameters:(anonymous)— column with timestampformat(optional) — date/time pattern string; defaults toISO_OFFSET_DATE_TIME; special valueepochreturns milliseconds since Unix epochtimezone(optional) — timezone to apply
DURATION_FORMAT
Formats a duration value. Parameters align withDATE_FORMAT.
DEFAULT
Returns the base expression if non-null; otherwise returns the fallback. Parameters:(anonymous)— primary expressionvalue— fallback if primary is null
CONSTANT
Defines a literal constant value.CONCATENATE
Concatenates up to 256 values in sequence. Parameters:(anonymous, 0..255)— values to join
CONCATENATE_COLLECTION
Joins all elements of a collection into a single string. Parameters:(anonymous)— collection expressionseparator(optional, default:,) — delimiterunique(optional, default:false) —"true"deduplicates values
REPLACE
Replaces occurrences of a pattern within a string. Parameters:(anonymous)— source stringsearch— pattern to findreplacement— replacement string
SPLIT
Transforms a delimited string into an array. Parameters:(anonymous)— source stringseparator(optional, default:,) — delimiter
Date / Period Functions
START_DATE
Maps a timestamp to the start of the period it falls in. Parameters:(anonymous)— timestamp columnperiod— one of:NONE,DAY,WEEK,MONTH,QUARTER,YEAR,TRAILING_WEEK,TRAILING_TWO_WEEKS,TRAILING_THREE_WEEKS,TRAILING_MONTH
END_DATE
Maps a timestamp to the end of the period it falls in. Same parameters asSTART_DATE.
NOW
Returns the current timestamp at report execution time.Entity Lookup Functions
These functions join to external entities by ID and expose their properties via dot notation.PERSON
Loads the full person profile. Parameters:(anonymous)— column with person ID
api.Person properties
id, email, normalizedEmail, firstName, lastName, locale, data, steps, rewards, friends, advocates, shareables, journeys, audienceMemberships, recentRequestContexts.
CAMPAIGN
Loads the latest state of a campaign. Parameters:(anonymous)— column with campaign ID
api.BuiltCampaign properties
id, name, campaignName, description, state, version, programLabel, tags, steps, rewardRules.
CAMPAIGN_SUMMARY
Builds an aggregated campaign state from all known client change events. Parameters:(anonymous)— column with campaign ID
api.CampaignSummary properties
CLIENT
Loads the client model object. The join column is optional; defaults to the event’s client. Parameters:(anonymous, optional)— column with client ID
api.Client properties
CLIENT_PROPERTIES
Loads the property map associated with the current client. No join column required. Returns: name/value map; access specific properties by nameCLIENT_VERTICAL
Shortcut to extract a vertical attribute from a client.EVENT
Loads a specific consumer event by ID. Parameters:(anonymous)— column with consumer event ID
api.ConsumerEvent (or subtype: StepConsumerEvent, RewardConsumerEvent, InputConsumerEvent)
id, rootEventId, type, eventTime, person, data, sandbox, clientContext.
Additional StepConsumerEvent properties: name, stepName, campaignId, personId, visitType, quality, attribution.
REWARD
Combines all known reward events for a given reward ID into a single summary. Parameters:(anonymous)— column with reward ID
api.RewardSummary properties
id, currentState, faceValue, supplierId, rewardType, partnerRewardId, email, data. States: EARNED, FULFILLED, SENT, REDEEMED, FAILED, CANCELED, REVOKED.
REWARD_SUPPLIER
Loads the reward supplier model. Parameters:(anonymous)— column with reward supplier ID
api.RewardSupplier properties
STEP_RECORD
Finds the step record for a given step consumer event. Parameters:(anonymous)— column with step event IDstep_name(required) — column with the step nameevent_time_name(required) — column with the step event time
api.StepRecord properties
id, clientId, eventTime, requestTime, personId, name, deviceType, attribution, visitType, quality, data.
INPUT_RECORD
Finds the input record corresponding to an input consumer event. Parameters:(anonymous)— column with input consumer event IDevent_name(optional) — column with event name; omit to match any nameevent_time_name(required) — column with event time
api.InputRecord properties
id, clientId, eventTime, personId, name, locale, apiType, appType, deviceType, userAgent, data.
DEVICE_TYPE
Parses a user agent and returns a device/browser/OS classification. Parameters:(anonymous, optional)— consumer event ID (function joins to the full event to extract user agent)user_agent(optional) — explicit user agent string; use instead of the anonymous event IDmode(optional) — one of:DEVICE_TYPE(default) — Mobile, Desktop, OtherVERSIONED_DEVICE_TYPE— e.g. Apple iPhone iOS 17.4.1, Desktop Mac OS X 10.15.7DETAILED_DEVICE_TYPE— UNKNOWN, ROBOT, MOBILE, PHONE, DESKTOP, ROBOT_MOBILE, TABLET, TVBROWSER_TYPE— e.g. Safari, Chrome, Edge, DuckDuckGoOS_TYPE— e.g. Android, iOS, Linux, Tizen
Collection Functions
COLLECTION
Filters and optionally extracts fields from a collection. Parameters:(anonymous)— source collection expressionfilter(optional, repeatable) — filter predicate; useand/orwithin onefilter:parameter, or supply multiple separatefilter:parameters (all must match)extracting(optional) — extract a single field from each element
filter: arguments (implicit AND between them):
COUNT
Counts all elements in a collection. Used in records reports (not metrics); wraps aCOLLECTION expression.
COUNT_DISTINCT
Counts distinct values of the extracted field across a collection. Used in records reports (not metrics).PERSON_COLLECTION
Paginated, memory-efficient collection extraction from a person profile. Preferred overCOLLECTION for person data.
Parameters:
(anonymous)— person ID (must come fromperson(id).idto ensure identity resolution)collection(required) — one of:steps,rewards,friends,advocates,shareables,journeys,audience_memberships,request_contexts,shares,datafilter(optional) — filter predicateextracting(optional) — field to extract from each elementreduce(optional) — aggregation to apply:sum,count,min,max
FIRST
Returns the first element of a collection, optionally after sorting. Parameters:(anonymous)— source collectionsortBy(optional) — field to sort by before selecting(anonymous, 2nd)— sub-property to extract from the selected element
LAST
Returns the last element of a collection, optionally after sorting. Same parameters asFIRST.
INDEX
Returns the element at a specific position in a collection. Parameters:(anonymous)— source collectionindex(required) — zero-based integer indexsortBy(optional) — field to sort by before indexing
EXPLODE
Expands an array into multiple rows — one row per element. Parameters:(anonymous)— array expression
Aggregation Functions (Metrics Reports Only)
These functions are only valid in metrics report types (e.g.CONFIGURABLE_EVENT_METRICS, Input Record Metrics, etc.).
Advocate vs. Friend Funnel — event.personId Identity
GROUP_* functions load events matching the given step_name. The meaning of event.personId on those events depends on which side of the referral funnel the step belongs to. Which steps belong to which funnel side is determined by the journey configuration in the campaign — advocate-journey steps record the advocate as event.personId, friend-journey steps record the friend.
If you want to measure advocate activity using a friend-funnel step (e.g. how many share clicks each advocate generated), group by
event.data.related_person_id, not event.personId:
BOOLEAN_FORMAT to pick the correct person ID conditionally:
GROUP_COUNT_DISTINCT(event.personId, step_name:"shared") and expecting it to represent advocates is correct — shared is an advocate-funnel step, so event.personId is the advocate. But pulling GROUP_COUNT_DISTINCT(event.personId, step_name:"share_clicked") gives you a count of unique friends, not advocates. Mix the two step names without accounting for this and the person IDs represent different populations in each column.
All aggregation functions share a common set of optional filter parameters in addition to their required ones:
GROUP_COUNT
Counts the number of records matching the group.GROUP_COUNT_DISTINCT
Counts distinct values of the given expression within the group.GROUP_SUM
Sums the values of the expression within the group.GROUP_AVG
Averages the values of the expression within the group.GROUP_MIN
Returns the minimum value within the group.GROUP_MAX
Returns the maximum value within the group.GROUP_FIRST
Returns the first occurrence of the expression within the group, ordered by event time.GROUP_LAST
Returns the last occurrence of the expression within the group.GROUP_CONCATENATE
Concatenates all values of the expression within the group.Arithmetic & Rate Functions
SUM
Adds two expressions.SUBTRACT
Subtracts the second expression from the first.RATE
Calculates a rate: value / denominator.PERCENTAGE
Calculates a percentage: (value / total) * 100.BENCHMARK
Compares a rate to a benchmark threshold.Utility Functions
MAP_DIMENSION
Maps a value to a dimension definition stored in the platform. Parameters:(anonymous)— source value expressiondimension_name— name of the dimensionprogram_label— program label expression
REPORT_PARAMETERS
Provides access to dynamic parameters passed at report execution time. Useful for parameterized templates.GEO_IP
Extracts geo-location data from an IP address.SUPPORT
Provides access to support-related metadata for the event’s client.RISK_VALUE
Extracts a risk signal value.Enums Reference
Attribution
Controls which events are included based on attribution status.Visit Type
Segments events by whether the person is new to a given scope.Quality
Filters events by conversion quality signal.Time Period (for START_DATE / END_DATE)
Column Time Range (for Aggregation Functions)
Person Collection Names (for PERSON_COLLECTION)
Recipes
Count Events by Step (Metrics Report)
Traffic Funnel With Attribution Filters
Count Input Events by Name, App Type, and API Type
Daily Bucketing
Person Details With Lookup
Conditional Column (Boolean Format)
Add N Days Offset to a Timestamp (e.g. +7 Days)
Extract Device Type From Input Record
Count Steps on a Person Profile
Sum Total Rewards Issued
Cross-Client API Type Breakdown (Run From Extole Account)
Report parameters:target_client_ids:ALL_CLIENTSfilters:client(event.clientId).clientType=="CUSTOMER"
mappings:
Check if a Referral Exists on a Person (With Hidden Intermediate)
Compare a Step Date Against a Rolling 45-Day Window
Parameterized Period (Using REPORT_PARAMETERS)
Client Vertical
Null-Safe Data Extraction
Null Check Filter
ColumnHas_Share_Click must not be absent:
Salesforce Account ID
Count Steps on a Person Profile (Records Report)
UseCOUNT_DISTINCT(COLLECTION(...)) in records reports where PERSON_COLLECTION is not available:
Count Targeted Campaigns Across Multiple Step Names
Counts distinct campaigns touched by steps matching any of several step names:Count All Events (Any Step)
Rate as a Fraction (e.g. 30%)
Pass"3.333333333333" as the denominator to compute 30%:
