Importing data automatically

Linnworks has a very flexible mechanism for importing data into the system such as orders you’re your websites, generic e-commerce carts and non-integrated selling venues you can also import and synchronize your stock levels with other systems and your stock held by your suppliers using very simple Comma Delimited (CSV) file import functionality.


Similarly when you need to output information from Linnworks, you can configure the system to output CSV files onto a disk, post it to the web or upload to FTP location. Every time you synchronize (click Sync) button the data gets generated. This method is ideal if you need to distribute latest stock levels, upload it to your website, post it to drop-shippers or notify your suppliers of your low stock and raise automatic purchase order. Read exporting data article


In essence, Data Import/Export allows you to completely automate your processes.

 

Importing data

You can import data of specific nature, for example stock items, stock levels and order book data. Below we describe how to do one-off import of stock items and stock level data into the system. Following that we will cover the functionality for configuring the import to start when you synchronize.

Setting up import on every synchronization

You can set up the system to import the data every time you synchronize (click Sync button). This is particularly useful to import new orders coming from different sources for which the direct integration is not always possible (for example your website which is hosted on third party cart provider). Below we describe how to set up automatic import of order from the web, the Order Book import process imports orders only once, therefore the same file can be brought in as many times as you like and only new order will appear on the system.

In Linnworks, go to Settings > Automation > System Interfacing

Expressions

Sometimes it is necessary to provide data into the system which is not obviously available in the source data file. Expressions are any functional or mathematical equation which takes its variables from the data already available and evaluates it. Let’s look at three examples of expressions when importing orders into the system

1. The import requires column Full Name, however you may have it Title, Surname, Firstname in the data feed as 3 separate columns. We can create an expression

join[“ “,Title,Surname,Firstname]

Where join is a function that takes some parameters. This expression will create a text value that combines all three fields

2. You want to record Tax column, but it is not available in your data source file. You have OrderTotal column and ShippingCosts, and you want to exclude shipping costs from OrderTotal and calculate 15% inclusive tax. Mathematical expression can solve this problem

N2[(Order Total – ShippingCosts) / 23 * 3]

where N2 is a function which converts the result into two decimal point value

3. Order import procedure requires Status field to be set as PAID, otherwise the order will not be imported. However the status identifiers in your data source file are different, lets say you have 1 for paid, 0 for unpaid (refunded). The logical expression can evaluate the status and output the desired value, for example

iif[OrderStatus=”1”,”PAID”,”NOTPAID”]

where iif is a function that takes first parameter as evaluation, second as an output if true, third as an output if false

If you having trouble with writting the correct expression, post any problems on the forum, we will be happy to help.

Click here to read more about Expressions