Platform Event

Topic JSON

For the topic JSON, you simply need to provide the name of the platform event you wish to subscribe to.

Sample Topic JSON

{ "Name": "Notification__e"}

Data Sync Configuration

Use SalesforcePlatformEventDataSource as the source for platform events.

The Id column is mandatory in the source.

Sample Data Sync Config

<?xml version="1.0" encoding="utf-16" ?>
<BatchDataSyncConfig name="Platform Events" version="1.0.0" xmlns="http://www.cinchy.co">
<SalesforcePlatformEventDataSource type="Event">
<Schema>
<Column ordinal="1" name="Id__c" dataType="Text" maxLength="100" />
<Column ordinal="2" name="TestField__c" dataType="Text" maxLength="100" />
<Column ordinal="3" name="Message__c" dataType="Text" maxLength="100" />
</Schema>
</SalesforcePlatformEventDataSource>
<CinchyTableTarget model="" domain="Events" table="SF Platform Event">
<ColumnMappings>
<ColumnMapping sourceColumn="Id__c" targetColumn="Id" />
<ColumnMapping sourceColumn="TestField__c" targetColumn="TestField" />
<ColumnMapping sourceColumn="Message__c" targetColumn="Message" />
</ColumnMappings>
<SyncKey>
<SyncKeyColumnReference name="Id" />
</SyncKey>
<NewRecordBehaviour type="INSERT" />
<ChangedRecordBehaviour type="UPDATE" />
<DroppedRecordBehaviour type="DELETE" />
</CinchyTableTarget>
</BatchDataSyncConfig>