Skip to content

Exporting Cost Centres From Sage 200 Online

This task will export cost centres from Sage 200 Online in Sage 200 Online Cost Centre XML format to a file.

Settings

Sage 200 Online Connection

Required
The connection to Sage 200 Online to use. See the Connecting to Sage 200 Online article if you require more information on how to create/manage connections.

Export Settings > Date Modified

Required
When the 'Export Modified or All Records' setting is set to 'Modified', only records modified after this date will be downloaded. The date will update automatically each time the task runs, to ensure that only records modified since the task last ran will be downloaded.

Export Settings > Export Modified or All Records

Required
Used to choose which records should be included in the download. The available options are:

  • All - All records will be downloaded, regardless of whether or not they have been updated since the task last ran.
  • Modified - Only records created or updated since the task last ran will be downloaded.

Filter

Optional
Allows a filter to be set to limit the data that is returned. For example, you can return currencies where the name field equals 'Euro' using: name eq 'Euro'

Sage 200 Online uses the OData protocol, and expects the filter to be specified in this format. You can find more information on OData filters here.

Output File

Required
The name of the file to save the downloaded records to.

Page Size

Required
The number of records to include in each page of results downloaded from Sage. Increasing this value will speed up the download, but will use more memory. Defaults to 50.

Zynk Settings

See Common Task Settings.

Examples

Sample output file:

<?xml version="1.0" encoding="utf-8"?>
<CostCentres
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CostCentre>
    <id>1015</id>
    <date_time_created>2021-02-28T13:40:03.65Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code />
    <name />
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
  <CostCentre>
    <id>44851</id>
    <date_time_created>2021-07-22T14:03:17.53Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code>ADM</code>
    <name>Administration</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
  <CostCentre>
    <id>44852</id>
    <date_time_created>2021-07-22T14:03:17.543Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code>BIR</code>
    <name>Birmingham</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
  <CostCentre>
    <id>44854</id>
    <date_time_created>2021-07-22T14:03:17.55Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code>LON</code>
    <name>London</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
  <CostCentre>
    <id>44855</id>
    <date_time_created>2021-07-22T14:03:17.55Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code>MAN</code>
    <name>Manchester</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
  <CostCentre>
    <id>44858</id>
    <date_time_created>2021-07-22T14:03:17.557Z</date_time_created>
    <date_time_updated>2021-02-28T14:23:46.23Z</date_time_updated>
    <code>SCO</code>
    <name>Scotland</name>
    <contact_name />
    <contact_details />
    <contact_email_address />
  </CostCentre>
</CostCentres>