Custom Event Schema

Use the event data models provided by the Engagement Mobile SDK for cart event, catalog event, and order event to use the unified data model across Salesforce. You can create and capture a custom event.

Define the custom event in the Mobile Connector schema:

Source Event PropertyTarget Schema Developer NameField TypeDescriptionCIM Object / Attribute
<Automatically Assigned>eventIdtextRequired. Typically the primary key for the engagement events.-
<Automatically Assigned>dateTimedatetimeRequired. Used for data partitioning for engagement events. ISO8601 supported format.-
nameeventType = textRequired. The name defined in property suffixed with eventType. Example: The name Custom Event is transformed to: "eventType": "Custom Event".-
<Automatically Assigned>sessionIdtextRequired. The identifier of the session.-
<Automatically Assigned>deviceIdtextRequired. Typically the primary key for profile events.-
<Automatically Assigned>category = "Engagement"textRequired. Possible values are:
  • Engagement
  • Profile
-
<Automatically Assigned>channel = "mobile"textThe SDK event channel. For Engagement Mobile SDK the value is mobile.-
<user defined attributes array><attributes as defined by user><user defined>Custom Event. Note: Attributes array can contain nested arrays.-
<Automatically Assigned when Location Tracking is allowed>longitudenumberThe longitudinal coordinate in decimal degrees reported by the device at the time the event was captured.Device Longitude
<Automatically Assigned when Location Tracking is allowed>latitudenumberThe latitudinal coordinate in decimal degrees reported by the device at the time the event was captured.Device Latitude

If eventType isn’t provided but name is then eventType defaults to the value of name. For example, the schema could look like: