Skip to main content

Polling event example config

XML example

This example XML uses the following values:

ValueDescriptionExample
Column NameName(s) of your source column(s)Id, Name, Age, Address, Salary
dataTypeData type of your source columnNumber, Text
isMandatoryWhether the column is mandatoryfalse
validateDataWhether column data needs validationfalse

Blank XML example

<BatchDataSyncConfig name="Data Polling" version="1.0.0" xmlns="http://www.cinchy.co">
<PollingEventBrokerDataSource>
<Schema>
<Column name="" dataType="" isMandatory="" validateData=""/>
<Column name="" dataType="" isMandatory="" validateData=""/>
</Schema>
</PollingEventBrokerDataSource>

Populated XML example

<?xml version="1.0" encoding="utf-16"?>
<BatchDataSyncConfig name="Data Polling" version="1.0.0" xmlns="http://www.cinchy.co">
<PollingEventBrokerDataSource>
<Schema>
<Column name="ID" dataType="Number" isMandatory="false" validateData="false"/>
<Column name="NAME" dataType="Text" isMandatory="false" validateData="false"/>
<Column name="AGE" dataType="Number" isMandatory="false" validateData="false"/>
<Column name="ADDRESS" dataType="Text" isMandatory="false" validateData="false"/>
<Column name="SALARY" dataType="Number" isMandatory="false" validateData="false"/>
</Schema>
</PollingEventBrokerDataSource>

Example with destination

<?xml version="1.0" encoding="UTF-16"?>
<BatchDataSyncConfig xmlns="http://www.cinchy.co" name="Data Polling" version="1.0.0">
<PollingEventBrokerDataSource>
<Schema>
<Column name="ID" dataType="Number" isMandatory="false" validateData="false" />
<Column name="NAME" dataType="Text" isMandatory="false" validateData="false" />
<Column name="AGE" dataType="Number" isMandatory="false" validateData="false" />
<Column name="ADDRESS" dataType="Text" isMandatory="false" validateData="false" />
<Column name="SALARY" dataType="Number" isMandatory="false" validateData="false" />
</Schema>
</PollingEventBrokerDataSource>
<CinchyTableTarget reconcileData="true" domain="Automation" table="Customer1" suppressDuplicateErrors="true">
<ColumnMappings>
<ColumnMapping sourceColumn="ID" targetColumn="Id" />
<ColumnMapping sourceColumn="NAME" targetColumn="Name" />
<ColumnMapping sourceColumn="AGE" targetColumn="Age" />
<ColumnMapping sourceColumn="ADDRESS" targetColumn="Address" />
<ColumnMapping sourceColumn="SALARY" targetColumn="Salary" />
</ColumnMappings>
<SyncKey>
<SyncKeyColumnReference name="Id" />
</SyncKey>
<NewRecordBehaviour type="INSERT" />
<DroppedRecordBehaviour type="DELETE" />
<ChangedRecordBehaviour type="UPDATE" />
<PostSyncScripts />
</CinchyTableTarget>
</BatchDataSyncConfig>

Connections UI example

This example shows you how to set up a polling event source using the Connections UI.

Schema

Our column parameters are set as follows:

Column NameData Type
IDNumber
NAMEText
AGENumber
ADDRESSText
SALARYNumber