Export Truth Records
This task will export records from the truth table (as seen on the 'Data' tab) to an XML file.
The truth table is used by Zynk to map the ID numbers of records imported using Zynk between two systems. The 'Internal ID' is usually the ID of the record in Sage, and the external ID is the ID of the matching record from an external system such as a website or e-commerce platform.
For more detailed information on the truth table please visit the Truth Database page.
Settings
Date Created
Required
The date used when exporting new records. Only records created since this date will appear in the output file. The date will automatically update each time the task runs, to the highest created date among the records exported.
Date Modified
Required
The date used when exporting modified records. Only records modified since this date will appear in the output file. The date will automatically update each time the task runs, to the highest modified date among the records exported.
Export
Required
Choose which records should be exported. The available options are:
- All - Will export all records.
- New - Will only export records where the created date is greater than the value shown in the 'Date Created' setting.
- Modified - Will only export records where the modified date is greater than the value shown in the 'Date Modified' setting.
Output File
Required
The XML file to output the truth records to.
Output Type
Required
Choose the amount of detail the task should output for each record. The following options are available:
- Simple - Only outputs the most important information:
InternalId,ExternalId,TypeandCollection - Detailed - Outputs all information. This is the default option.
Default Collection
Optional
Filters the export by collection. This field represents additional information the truth record can be categorised by. For example, sales orders from Sage 200 use this field to differentiate between the different order types, i.e. orders, returns, proformas and quotes. However, for most systems this field is not utilised.
Default Type
Optional
Filters the export by type. This field represents both the system and type of data the truth record relates to. Defaults to Zynk.Connect.Objects.Contact.
Workflow ID
Optional
Filters the export by workflow ID. You can view the ID of a workflow from the 'Properties' tab, under 'Workflow Settings'. If left blank, the task will output truth records for the workflow it appears in.
Zynk Settings
Examples
Sample output file, with Output Type set to Simple:
<?xml version="1.0" encoding="utf-8"?>
<TruthRecords>
<TruthRecord InternalId="0000000156" ExternalId="5230" Type="Zynk.Connect.Objects.SalesOrder" Collection="SopInvoice" />
<TruthRecord InternalId="0000000157" ExternalId="5231" Type="Zynk.Connect.Objects.SalesOrder" Collection="SopInvoice" />
<TruthRecord InternalId="0000000158" ExternalId="5232" Type="Zynk.Connect.Objects.SalesOrder" Collection="SopInvoice" />
<TruthRecord InternalId="0000000160" ExternalId="5233" Type="Zynk.Connect.Objects.SalesOrder" Collection="SopInvoice" />
</TruthRecords>
Sample output file, with Output Type set to Detailed:
<?xml version="1.0" encoding="utf-8"?>
<TruthRecords xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TruthRecord Id="585053" InternalId="0000000156" ExternalId="5230">
<Profile>7e84e861-49bb-4a64-98fb-05aae4945434</Profile>
<Hash xsi:nil="true" />
<Created>2026-10-22T11:44:19.4971056</Created>
<Modified>2026-10-22T11:44:19.5091052</Modified>
<Purge xsi:nil="true" />
<Collection>SopInvoice</Collection>
<Type>Zynk.Connect.Objects.SalesOrder</Type>
</TruthRecord>
<TruthRecord Id="585054" InternalId="0000000157" ExternalId="5231">
<Profile>7e84e861-49bb-4a64-98fb-05aae4945434</Profile>
<Hash xsi:nil="true" />
<Created>2026-10-22T11:44:19.5161012</Created>
<Modified>2026-10-22T11:44:19.5196973</Modified>
<Purge xsi:nil="true" />
<Collection>SopInvoice</Collection>
<Type>Zynk.Connect.Objects.SalesOrder</Type>
</TruthRecord>
<TruthRecord Id="585055" InternalId="0000000158" ExternalId="5232">
<Profile>7e84e861-49bb-4a64-98fb-05aae4945434</Profile>
<Hash xsi:nil="true" />
<Created>2026-10-22T11:44:19.5226948</Created>
<Modified>2026-10-22T11:44:19.5246995</Modified>
<Purge xsi:nil="true" />
<Collection>SopInvoice</Collection>
<Type>Zynk.Connect.Objects.SalesOrder</Type>
</TruthRecord>
<TruthRecord Id="585056" InternalId="0000000160" ExternalId="5233">
<Profile>7e84e861-49bb-4a64-98fb-05aae4945434</Profile>
<Hash xsi:nil="true" />
<Created>2026-10-22T11:44:19.5325912</Created>
<Modified>2026-10-22T11:44:19.5339062</Modified>
<Purge xsi:nil="true" />
<Collection>SopInvoice</Collection>
<Type>Zynk.Connect.Objects.SalesOrder</Type>
</TruthRecord>
</TruthRecords>