Triggered messages can use send-time context to personalize the message.
That context can include API dataFields, journey event fields, and
values fetched by a Live Data tile. Iterable can retain a copy of the
context on the send event as transactionalData.
This article explains when Iterable retains that context, where you can find it, and what happens when it exceeds the storage limit.
# In this article
# How triggered message data works
For a triggered send, Iterable uses send-time data to personalize the
message. For example, you can pass a tracking number in dataFields to
personalize a shipping confirmation email. Iterable can retain that
tracking number on the send event as transactionalData.
The name dataFields also appears in requests that update profiles, track
events or purchases, or send proofs. The field name alone doesn't tell you
whether Iterable stores the data as transactionalData. For details, see
Other uses of dataFields.
Send-time context can come from:
- An API request, such as
POST /api/email/targetorPOST /api/campaigns/trigger - A journey trigger or a Live Data tile that runs before the send.
This send-time data can supplement or override values on the user's profile for that send.
# When transactionalData is created
Iterable can record the send-time context for a triggered message as
transactionalData, even if the message template doesn't reference
every value. It does not include user profile updates, preview or proof
test data, campaign-creation dataFields, campaignDataFields, or
data feed responses.
Iterable creates transactionalData in these cases:
- API-triggered sends that include
dataFields. - Journey sends triggered by an event or API call when that trigger provides
dataFieldsfor that specific send. - Journey sends in which the journey entrance (API trigger, custom event, or
system event) included
dataFields—that trigger data persists astransactionalDatathrough all subsequent send steps in the same journey, including sends in journeys triggered by a Send to Journey tile. - Journey sends that follow a Live Data tile in the same journey. Live
Data tiles fetch data from an external source and make it available for
personalization and decisioning downstream in the journey. If a Live Data tile
supplies values before a send, those values can appear in
transactionalDataunderliveData.<objectName>—the same path used to reference the data in templates (for example,liveData.thunderGameStats.currentScore). If the journey includes multiple Live Data tiles, each object appears under its own name withinliveData.
# When transactionalData is not created
The following do not contribute values to transactionalData:
- A scheduled or list-based journey entry by itself. A Live Data tile later in the journey can still supply context for the send.
- Current user profile fields that are not part of the send-time context.
- Data feed response bodies, which are separate from
transactionalData. - Journey Webhook tile responses. The Webhook tile sends data from Iterable
to an external server, then Iterable discards any response it receives. Webhook
tiles do not contribute to
transactionalData.
# Where transactionalData appears
transactionalData is:
- A snapshot of the send-time context for one triggered message.
- Stored on the historical send event, subject to the storage limit.
You may see transactionalData in features that read from the stored send
event, including:
- Sent-message logs and user profile event history.
- Historical preview workflows, View in Browser, and resend actions for triggered messages.
- Event exports or data shares that expose stored send-event fields.
- Send event payloads for system webhooks.
By contrast, you should not expect transactionalData:
- In the user's profile.
- In segmentation queries.
- In non-send events such as opens and clicks, which have their own event data.
# Storing transactionalData on historical send events
The storage limit applies to the combined send-time context, including any Live Data values.
Iterable stores up to about 3,000 characters of transactionalData on the
historical send event. If the data exceeds this limit, Iterable omits
transactionalData from the stored send event. This does not affect Iterable's
ability to personalize or send the original message.
For example:
- Most letters, numbers, punctuation, and many accented characters usually count as one character.
- Some characters can count as more than one character for this limit, including emoji, many flags, and some less common script symbols.
- JSON structure also counts toward the limit, including field names, quotes, braces, and commas.
TIP
If you need to reuse values from transactionalData later for segmentation,
reporting, or future messages, save them somewhere meant for ongoing use, such
as the user's profile, a custom event, or an external system. transactionalData
is a snapshot of one send, not a place to keep data for later reuse.
# Impact of exceeding the storage limit
If transactionalData exceeds the send-event storage limit:
- The send still processes.
- Iterable can still use the send-time context to personalize the message.
- Iterable does not retain any
transactionalDataon the historical send event. - Iterable features that depend on the
transactionalDatafor a stored event may not have the data they need to work as expected.
Across Iterable, these effects occur when transactionalData is not retained:
- For View in Browser
links and the HTML returned by
GET /api/email/viewInBrowser, the values are not rendered if the template uses merge tags sourced fromtransactionalData. - Iterable blocks resend if it recorded a storage-limit error. Otherwise, a resend can render without the original send-time values.
- Downstream exports that expose stored send-event fields may omit
transactionalDatafor that send.
If transactionalData is missing from Event History or a send-event export,
check the original API request, source event, or system that provided the
Live Data values.
To reduce the chance of crossing the limit:
- Aim for about 2,500 characters or fewer across the combined send-time context, including field names and JSON punctuation. Count both trigger fields and any values fetched by Live Data tiles.
- Keep field names short and pass or fetch only the fields you need.
- Avoid large text blocks, HTML, or arrays in the send-time context.
# Other uses of dataFields
For the list of API endpoints that send triggered campaigns, see Activating a Triggered Campaign.
-
User profile update APIs:
dataFieldscontains custom fields to save on the user's profile. These fields are unrelated totransactionalDatafor triggered messages.-
POST /api/users/update: Use the top-leveldataFieldsobject. -
POST /api/users/bulkUpdate: UsedataFieldsin each object in theusersarray.
-
-
Commerce APIs: The location of
dataFieldsdetermines where Iterable saves the data.-
POST /api/commerce/updateCart:user.dataFieldsupdates the user's profile.items[].dataFieldsdescribes individual cart items. -
POST /api/commerce/trackPurchase:user.dataFieldsupdates the user's profile. Top-leveldataFieldsdescribes the purchase event, anditems[].dataFieldsdescribes individual items in that event.
-
-
Event and journey trigger APIs: In the API request body,
dataFieldscontains the properties saved on the event itself or passed into the journey trigger. This is related totransactionalDataonly when that event or journey trigger later causes a message send and its values are used for that send.Common examples include the following API endpoints:
-
Template preview and proof APIs: In the API request body,
dataFieldscontains values used to render a template preview or send a proof. This does not create historicaltransactionalData.This includes the following API endpoints:
Campaign creation API: In the API request body for
POST /api/campaigns/create,dataFieldscan be used to statically render parts of a campaign template when the campaign is created.campaignDataFieldsis a separate parameter for campaign-level merge data. SeedataFieldsandcampaignDataFieldswhen creating a campaign via API.System webhook payloads: See Triggered message data in system webhooks.
# dataFields and campaignDataFields when creating a campaign via API
For POST /api/campaigns/create,
dataFields and campaignDataFields serve different purposes:
-
dataFieldsis create-time data and applies only to email campaigns. When you create a campaign, Iterable replaces double-square-bracket placeholders in the copied template with the values you provide indataFields. For example, it replaces[[storeName]]with the value you provide forstoreName.- This step does not replace Handlebars merge tags written with double
curly braces or create
transactionalDataon the send event.
- This step does not replace Handlebars merge tags written with double
curly braces or create
-
campaignDataFieldsis campaign-level merge data. Use Handlebars merge tags with double curly braces, such as{{storeName}}, to reference these values when Iterable renders the message. If later user or event data includes the same field names, those later values take precedence.-
campaignDataFieldsis not stored on the user's profile or in the payload of the stored send event.
-
# Triggered message data in system webhooks
System webhooks are used to send data about Iterable system events to your system.
System webhook payloads include both dataFields (always present) and
transactionalData (when it applies to a send), and these fields have different
use and limits than other areas of Iterable.
TIP
To view examples of system webhook payloads, see System Webhooks.
# dataFields in system webhooks
In a system webhook payload, dataFields is the object that contains the
details for that event. It is not a copy of the original request body used to
send the message, or a copy of the send-time dataFields used to personalize
the message.
For a triggered send event, the top level of dataFields usually includes
Iterable's details about the send, such as campaignId, templateId,
messageId, and channelId. Nested transactionalData can contain send-time
values from the API request or journey context, including values from a Live
Data tile.
For non-send webhook events, dataFields contains the fields for that event,
and there may be no transactionalData at all.
# transactionalData in system webhooks
For triggered send events, transactionalData can contain values from the
API request or journey context, even if the message template doesn’t reference
them.
The system webhook payload has a separate limit of about 28,000 characters for
transactionalData. If the data exceeds that limit, Iterable still
sends the webhook, but omits transactionalData from the payload.