Exporting Sales Orders from Sage 200
This task will export new, modified or all sales orders in Sage 200 Sales Order XML format.
Settings
Sage 200 Connection
Required
The Sage 200 connection to use. See the Connecting to Sage 200 article if you require more information on how to create/manage connections
Characters To Cleanse
Optional
A list of characters to remove from the output file. Use this if your Sage data contains characters that are not valid for XML documents (e.g. �
).
Export Settings
Required
- Date Created - Used when exporting new records. Only records created 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.
- Op Lock - Used when exporting modified records. Only records where the Op Lock is greater than this value will be exported. The value will update automatically each time the task runs.
- When initially setting up the task, the Op Lock value will default to 0, this will export all records the first time that it runs.
- If you would like the integration to pick up all records modified from now on, enter a value of MAX into the Op Lock setting and press Enter, Zynk will attempt to read the current highest value from Sage 200. Please note that you need to have a connection set up to the Sage 200 company on the task, and the user that Zynk is running as must be able to access the company).
- Page Size - The maximum number of records in each batch read from Sage. Increasing this will speed up the export but use more memory. Defaults to 100.
- Timeout (seconds) - Specify the timeout for the task you're running. Defaults to 30.
- Use Caching - Will cache certain common types which could be referenced in mulitple places, to minimise the amount of database activity, and decrease to overall export time. This will use more memory, if you encounter out of memory issues, then try disabling this setting.
Query Settings
Optional
- Columns - Used to enter the column names to export from the Sage database. Be sure to include the table name eg.
[SLCustomerAccount].[CustomerAccountNumber]
- 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.
Output File
Required
The file to save the exported records to, in Zynk XML format.
Zynk Settings
Examples
Sample output file:
<?xml version="1.0" encoding="utf-8"?>
<Company
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SalesOrders>
<SalesOrder>
<Id>12</Id>
<UniqueId>1361</UniqueId>
<SalesOrderNumber>0000000002</SalesOrderNumber>
<CustomerOrderNumber>12</CustomerOrderNumber>
<DefaultWarehouse>HOME</DefaultWareHouse>
<ForeignRate>1</ForeignRate>
<Currency>GBP</Currency>
<AccountReference>ZYN0001</AccountReference>
<CurrencyUsed>false</CurrencyUsed>
<VatInclusive>false</VatInclusive>
<SalesOrderDate>2013-10-09T00:00:00</SalesOrderDate>
<DespatchDate xsi:nil="true" />
<PromisedDeliveryDate>2013-10-10T00:00:00</PromisedDeliveryDate>
<RequestedDeliveryDate>2013-10-10T00:00:00</RequestedDeliveryDate>
<SalesOrderAddress>
<UniqueId />
<Title />
<Forename />
<Middlename />
<Surname />
<Company>Zynk Software Limited</Company>
<Description> - NE2 3AE</Description>
<Address1>Nelson House</Address1>
<Address2>Fleming Business Centre</Address2>
<Address3 />
<Address4 />
<Town>Jesmond</Town>
<Postcode>NE2 3AE</Postcode>
<County>Tyne & Wear</County>
<Country> </Country>
<CountryName><Non-European></CountryName>
<Telephone>0845 123 2920</Telephone>
<TelephoneCountryCode />
<TelephoneAreaCode />
<Fax />
<FaxCountryCode />
<FaxAreaCode />
<Mobile />
<MobileCountryCode />
<MobileAreaCode />
<Email />
<Website />
<ContactName />
<Birthdate xsi:nil="true" />
<Notes />
<TaxCode>1</TaxCode>
<CustomFields />
<Activities />
<Groups />
<Roles />
</SalesOrderAddress>
<SalesOrderDeliveryAddress>
<Company>Zynk Software Limited</Company>
<Description> - NE2 3AE</Description>
<Address1>Nelson House</Address1>
<Address2>Fleming Business Centre</Address2>
<Address3 />
<Address4 />
<Town>Jesmond</Town>
<Postcode>NE2 3AE</Postcode>
<County>Tyne & Wear</County>
<Country> </Country>
<CountryName><Non-European></CountryName>
<Telephone>0845 123 2920</Telephone>
<TelephoneCountryCode />
<TelephoneAreaCode />
<Fax />
<FaxCountryCode />
<FaxAreaCode />
<Email />
<ContactName />
<Birthdate xsi:nil="true" />
<Notes />
<TaxCode>1</TaxCode>
<CustomFields />
<Activities />
<Groups />
<Roles />
</SalesOrderDeliveryAddress>
<SalesOrderItems>
<Item>
<Sku>PROD001</Sku>
<Name>Test Product</Name>
<Description>Test Product</Description>
<PrintSequenceNumber xsi:nil="true" />
<QtyOrdered>5</QtyOrdered>
<UnitPrice>34.2</UnitPrice>
<UnitDiscountAmount>0</UnitDiscountAmount>
<UnitDiscountPercentage>0</UnitDiscountPercentage>
<TaxRate>20</TaxRate>
<AnalysisCodes />
<Batches />
<TotalNet>171</TotalNet>
<TotalTax>29.93</TotalTax>
<TaxCode>1</TaxCode>
<NominalCode />
<CostCentre />
<Department />
<Location>WAREHOUSE</Location>
<Barcode />
<Type>Stock</Type>
<Confirmation xsi:nil="true" />
<QtyAllocated>0</QtyAllocated>
<QtyDespatched>5</QtyDespatched>
<QtyReceived xsi:nil="true" />
<QtyInvoiced xsi:nil="true" />
<FulfilmentMethod>From Stock</FulfilmentMethod>
<PromisedDeliveryDate>2013-10-10T00:00:00</PromisedDeliveryDate>
<RequestedDeliveryDate>2013-10-10T00:00:00</RequestedDeliveryDate>
<IsNegativeLine xsi:nil="true" />
<ShowOnDocs xsi:nil="true" />
<ShowOnPickingList xsi:nil="true" />
</Item>
</SalesOrderItems>
<Carriage>
<Sku />
<PrintSequenceNumber xsi:nil="true" />
<QtyOrdered>0</QtyOrdered>
<UnitPrice>0</UnitPrice>
<UnitDiscountAmount xsi:nil="true" />
<UnitDiscountPercentage xsi:nil="true" />
<TaxRate>0</TaxRate>
<CustomFields />
<AnalysisCodes />
<Batches />
<TotalNet>0</TotalNet>
<TotalTax>0</TotalTax>
<TaxCode xsi:nil="true" />
<Type>ChargeLine</Type>
<Confirmation xsi:nil="true" />
<QtyAllocated xsi:nil="true" />
<QtyDespatched xsi:nil="true" />
<QtyReceived xsi:nil="true" />
<QtyInvoiced xsi:nil="true" />
<PromisedDeliveryDate xsi:nil="true" />
<RequestedDeliveryDate xsi:nil="true" />
<IsNegativeLine xsi:nil="true" />
<ShowOnDocs xsi:nil="true" />
<ShowOnPickingList xsi:nil="true" />
</Carriage>
<SalesOrderType>SopInvoice</SalesOrderType>
<TakenBy>Website</TakenBy>
<Courier xsi:nil="true" />
<SettlementDays>0</SettlementDays>
<SettlementDiscount>0</SettlementDiscount>
<GlobalTaxCode>1</GlobalTaxCode>
<PaymentAmount>0</PaymentAmount>
<TaxNumber />
<PaymentType>SalesReceipt</PaymentType>
<Status>Live</Status>
<NetValueDiscount xsi:nil="true" />
<NetValueDiscountPercent>0</NetValueDiscountPercent>
<DiscountType xsi:nil="true" />
<Priority />
<AnalysisCodes />
<TotalNet xsi:nil="true" />
<TotalTax xsi:nil="true" />
<TotalGross xsi:nil="true" />
</SalesOrder>
</SalesOrders>
</Company>