Profile Event Routing

Profile events are mapped to individual data streams in Data 360 based on the Web Connector Schema. As all profile data is encapsulated using the generic user.attributes object in the SDK, explicitly setting the eventType field is the mandatory step required to direct the SDK data to the correct specific profile data stream.

To route profile data:

  1. Add the eventType field to the user.attributes payload.
  2. Set the value of eventType to match the developerName of the profile event defined in your Web Connector Schema (for example, contactPointEmail).
  3. Ensure the payload captures all schema-required fields for that specific profile event.

This example shows how to route profile data for a new email address. It shows the link between the event's required fields in the Web Connector Schema and the corresponding payload sent to Data 360 via the SDK.

The schema used in this example defines the contactPointEmail profile event that requires the eventType and email fields be present in the incoming data.

When you instrument the SDK to capture the contactPointEmail profile event, you must ensure that the SalesforceInteractions.sendEvent() call explicitly includes the eventType to match the schema's developerName and provide the required email address within the user.attributes object.

See Also