Sources and Destinations

Explain event context preservation using generated context events and enriching actions

Objective

After completing this lesson, you will be able to explain event context preservation using generated context events and enriching actions

Event Context Preservation in Actions

(New Feature)

What It Is

Two new capabilities let a CX flow carry the data that triggered it forward into later flows: generating context events on any action, and preserving the original event context in enriching actions. Consolidated here as event-context preservation.

Why It Matters

Complex orchestration often spans multiple entities and multiple CX flows — for example creating an account (a group) before creating a related contact (a profile). Without a way to carry the originating context forward, that data is lost between flows, forcing large, brittle single flows or manual re-creation of activities. Context preservation keeps flows small, ordered, and aware of what came before.

Generate Context Events in All Actions

Any action used in a CX flow can now generate a context event. In the action's Action Settings step, enable the Generate Context Event toggle. The context event's schema is added to the action request model, an internal response event is added (introducing Event Information, Event Matching Rules Mapping, and Event Schema Mapping steps), and the triggering event's attributes are preserved for downstream processing.

Note

The Generate Context Event toggle is not available for batch actions used in audience activations — only for actions used in CX flows.

Original Event Context in Enriching Actions

Enriching actions (which send a request to a target application and receive a response) can now include a context object in the request model that holds data from the original triggering event. That context is returned in the response and carried into subsequent events and flows, so each downstream flow operates with full awareness of the preceding steps — especially valuable in B2B profile-to-group scenarios.

Mapping the context object in an enriching action

In Practice

Use generated context events to link a chain of CX flows in a guaranteed order without connector-level workarounds. Use the enriching-action context object when a downstream flow needs both the target application's response and the original event data — for instance, creating an account then a contact that references it.

Reference documentation: