Exporting Price Bands from Sage 200
This task will export new, modified or all price bands in Sage 200 Price Band 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">
<PriceLists>
<PriceList AllRecords="false">
<UniqueId>1008</UniqueId>
<Name>Standard</Name>
<Reference>Standard</Reference>
<Currency>GBP</Currency>
<ExchangeRate>1,000000</ExchangeRate>
<Type>PriceList</Type>
<Prices>
<Price Action="Upsert">
<UniqueId>6689</UniqueId>
<DiscountType>Fixed</DiscountType>
<StockCode>PROD001</StockCode>
<StoredPrice>34.2</StoredPrice>
<BaseStoredPrice>34.2</BaseStoredPrice>
<Value>0</Value>
<ExternalReference>PROD001</ExternalReference>
<BaseQty xsi:nil="true" />
<QtyBreak xsi:nil="true" />
<DiscountAmountValue xsi:nil="true" />
<DiscountPercentValue xsi:nil="true" />
<UseStandard>false</UseStandard>
</Price>
<Price Action="Upsert">
<UniqueId>6430</UniqueId>
<DiscountType>Fixed</DiscountType>
<StockCode>PROD002</StockCode>
<StoredPrice>220.8083</StoredPrice>
<BaseStoredPrice>220.8083</BaseStoredPrice>
<Value>0</Value>
<ExternalReference>PROD002</ExternalReference>
<BaseQty xsi:nil="true" />
<QtyBreak xsi:nil="true" />
<DiscountAmountValue xsi:nil="true" />
<DiscountPercentValue xsi:nil="true" />
<UseStandard>false</UseStandard>
</Price>
</Prices>
</PriceList>
<PriceList AllRecords="false">
<UniqueId>1009</UniqueId>
<Name>Trade</Name>
<Reference>Trade</Reference>
<Currency>GBP</Currency>
<ExchangeRate>1.000000</ExchangeRate>
<Type>PriceList</Type>
<Prices>
<Price Action="Upsert">
<UniqueId>7021</UniqueId>
<DiscountType>Fixed</DiscountType>
<StockCode>PROD001</StockCode>
<StoredPrice>25.2</StoredPrice>
<BaseStoredPrice>25.2</BaseStoredPrice>
<Value>0</Value>
<ExternalReference>PROD001</ExternalReference>
<BaseQty xsi:nil="true" />
<QtyBreak xsi:nil="true" />
<DiscountAmountValue xsi:nil="true" />
<DiscountPercentValue xsi:nil="true" />
<UseStandard>false</UseStandard>
</Price>
<Price Action="Upsert">
<UniqueId>6984</UniqueId>
<DiscountType>Fixed</DiscountType>
<StockCode>PROD002</StockCode>
<StoredPrice>160.8083</StoredPrice>
<BaseStoredPrice>160.8083</BaseStoredPrice>
<Value>0</Value>
<ExternalReference>PROD002</ExternalReference>
<BaseQty xsi:nil="true" />
<QtyBreak xsi:nil="true" />
<DiscountAmountValue xsi:nil="true" />
<DiscountPercentValue xsi:nil="true" />
<UseStandard>false</UseStandard>
</Price>
</Prices>
</PriceList>
</PriceLists>
</Company>