Custom Events

Use the recommended Cart Interaction, Catalog Interaction, and Order Interaction data models provided by the Salesforce Interactions SDK to use the unified data model across Salesforce. You can create and capture custom events in addition to the recommended interaction data models.

Use this example as a guide to define the shape of your custom event in the Web Connector schema.

This example schema is provided for illustrative purposes only. Don't use it without modification in your Web Connector, as it may not align with all implementation goals.

Then, in Salesforce Interactions SDK, specify the eventType or name field, and required fields that aren’t set via Automatic Population of Required Data Cloud Fields to capture this event.

This drives the SDK to emit an event such as this to Data Cloud:

If eventType isn’t provided but name is, then eventType defaults to the value of name.