Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

CDP4S can publish Salesforce platform events the first time it sees configured types of Sitecore CDP session event. This allows custom functionality such as Flows to perform special tasks when these events occur.

Configure event types

In Settings, specify the type(s) of Sitecore CDP event you want CDP4S to publish in Salesforce, in the Monitor Custom Events field.

Flows

Create Platform Event-Triggered Flows that trigger on the CDP4S Custom Event.

The event has the following fields:

  • EventChannel__c: WEB, MOBILE_WEB, MOBILE_APP, EMAIL

  • EventType__c: the event type

  • EventData__c: raw JSON data for all properties from Sitecore CDP

  • SessionRef__c: the unique Sitecore CDP ref value

The event data may vary. To extract a field value, use the GetEventData Apex Action provided by S4S. Supply the EventData__c field value to the Input eventJson, and the field accessor (nested objects use colon separators). If the field is found the value will be returned as a string, otherwise it will be null.

To relate the visit record, use the SessionRef__c fields on the event and the Sitecore CDP Visit records.

The Sitecore CDP Visit record has a master-detail relationship to Sitecore CDP Guest, which in turn is related to a master object (if any) via the lookup field configured in settings.

  • No labels