Exporting Transactions from Sage 50 UK
This task will export Audit trail transactions from Sage 50 in the Sage 50 UK Transaction XML format.
Settings
Sage 50 Connection
Required
The connection to Sage 50 UK to use. See the Connecting to Sage 50 UK article if you require more information on how to create/manage connections.
Export Settings
Required
- Date Modified - Only records modified after this date will be exported. The date will update automatically each time the task runs.
- Export Modified, New or All Records - Used to choose which records should be included in the export. Note that the 'Modified' setting will also export any new records.
Query Settings
Optional
- Columns - Allows you to specify additional columns to include in the export. Additional fields will be exported in the CustomFields section in the XML. Be sure to include the table name for each of the additional columns provided eg.
[STOCK].[QTY_LAST_STOCK_TAKE]
. If the table that the column you are trying to retrieve is not used by the standard export, you will need to add the table to Joins. - Joins - Allows data to be exported from other tables in the Sage database. Required when exporting data from tables not included in the standard export.
- Where Clauses - Allows filters to be set to limit the data that is exported.
Query Timeout
Optional
The maximum amount of time (in seconds) the query should be allowed to run.
Output File
Required
The name of the file to export to. Data is exported in Zynk XML format
Zynk Settings
Examples
Sample output file:
<?xml version="1.0"?>
<Company
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Transactions>
<Transaction>
<UniqueId>631</UniqueId>
<TransactionType>SalesInvoice</TransactionType>
<AccountReference>ABS001</AccountReference>
<TransactionDate>2009-03-02T00:00:00</TransactionDate>
<DueDate xsi:nil="true" />
<PostedDate xsi:nil="true" />
<AnalysisCode />
<NominalCode>4000</NominalCode>
<Department>1</Department>
<Reference>35</Reference>
<PaymentReference />
<Details>AT Mini Tower Case</Details>
<NetAmount>12.56</NetAmount>
<TaxRate>20</TaxRate>
<TaxCode>1</TaxCode>
<TaxAmount>2.43</TaxAmount>
<OssCountryOfVat>FR</OssCountryOfVat>
<OssReportType>UnionOSS</OssReportType>
<ElectronicTransaction>false</ElectronicTransaction>
<OutstandingAmount>0</OutstandingAmount>
<ProjectRef />
<ProjectItem />
<TransactionNumber>631</TransactionNumber>
<BankReference>4000</BankReference>
<Discount xsi:nil="true" />
<ExchangeRate xsi:nil="true" />
<VatInclusive xsi:nil="true" />
<CustomFields />
</Transaction>
</Transactions>
</Company>