Export data from LinkQ
When working with a database, it is sometimes necessary to export data in a distinct file. Doing so can aid in reporting on activities, although, LinkQ provides a precise reporting tool with each available application. With LinkQ, the values can be exported from any field in any record. To do so, activate the list view (List) icon, on the items that need to be exported, and then select the records that should be exported. To select a record, tick the checkbox next to the corresponding record. Finally, click the Action button, and select Export.

- With the I want to update data (import-compatable export) option ticked, the system only shows the fields that can be imported. This is helpful in the case where the existing records need to be updated. This works like a filter. Leaving the box unticked, gives many more field options because it shows all the fields, not only the ones that can be imported.
- When exporting, there is the option to export in two formats:
.csvand.xls. With.csv, items are separated by a comma, while.xlsholds information about all the worksheets in a file, including both content and formatting. - These are the items that can be exported. Use the (Show sub-fields) icon to display more sub-field options. Use the Search bar to find specific fields. To use the Search option more efficiently, click on all the (Show sub-fields) icon to display all fields.
- The (Select field) icon button is present to add fields to the Fields to export list.
- The (Sort) icon to the left of the selected fields can be used to move the fields up and down, to change the order in which they are displayed in the exported file. Drag-and-drop using the (Sort) icon.
- The (Remove field) icon is used to remove fields. Click the (Remove field) icon to remove the field.
- For recurring reports, it is helpful to save export presets. Select all the needed fields, and click on the template drop-down menu. Once there, click on New template, and give a unique name to the export template. Click the (floppy drive) icon to save the configuration. The next time the same list needs to be exported, select the related template that was previously saved from the drop-down menu.
Import data into LinkQ
Importing data into LinkQ is extremely helpful during implementation, or in times where data needs to be updated in bulk. The following documentation covers how to import data into an LinkQ database.Get started
Data can be imported on any LinkQ business object using either Excel (.xlsx) or CSV (.csv) formats. This includes: contacts, products, bank statements, journal entries, and orders.
Open the view of the object to which the data should be imported/populated, click on (Action) icon, and in the drop-down menu select (Import records).

- Click Upload Data File and select the desired file.
- Adjust the Formatting options as needed (for CSV files only).
- Ensure all data in the File Column is correctly mapped to the appropriate LinkQ Field and free of errors.
- (Optional) Click Load Data File to reload the same file or upload a different one.
- Click Test to verify that the data is valid.
- Click Import.
NoteThe Formatting options do not appear when importing the proprietary Excel file type (i.e.,
.xls or .xlsx).Adapt a template
Import templates are provided in the import tool of the most common data to import (contacts, products, bank statements, etc.). Open them with any spreadsheet software (Microsoft Office, OpenOffice, Google Drive, etc.). Once the template is downloaded, proceed to follow these steps:- Add, remove, and sort columns to best fit the data structure.
- It is strongly advised to not remove the External ID (ID) column (see why in the next section).
- Set a unique ID to every record by dragging down the ID sequencing in the External ID (ID) column.

NoteWhen a new column is added, LinkQ may not be able to map it automatically, if its label does not fit any field within LinkQ. However, new columns can be mapped manually when the import is tested. Search the drop-down menu for the corresponding field.

Import from another application
The External ID (ID) is a unique identifier for a line item. It is possible to use an External ID (ID) from previous software to facilitate the transition to LinkQ. Setting an ID is not mandatory when importing, but it helps in many cases:- Update imports: import the same file several times without creating duplicates.
- Import relation fields.
Field missing to map column
LinkQ heuristically tries to find the type of field for each column inside the imported file, based on the first ten lines of the files. For example, if there is a column only containing numbers, only the fields with the integer type are presented as options. While this behavior might be beneficial in most cases, it is also possible that it could fail, or the column may be mapped to a field that is not proposed by default. If this happens, check the Show fields of relation fields (advanced) option, then a complete list of fields becomes available for each column.
Change data import format
NoteLinkQ can automatically detect if a column is a date, and tries to guess the date format from a set of most commonly used date formats. While this process can work for many date formats, some date formats are not recognizable. This can cause confusion, due to day-month inversions; it is difficult to guess which part of a date format is the day, and which part is the month, in a date, such as
01-03-2016.Import numbers with currency signs
LinkQ fully supports numbers with parenthesis to represent negative signs, as well as numbers with currency signs attached to them. LinkQ also automatically detects which thousand/decimal separator is used. If a currency symbol unknown to LinkQ is used, it might not be recognized as a number, and the import crashes.NoteWhen importing a CSV file, the Formatting menu appears on the left-hand column. Under these options, the Thousands Separator can be changed.
- 32.000,00
- 32000,00
- 32,000.00
- -32000.00
- (32000.00)
- $ 32.000,00
- (32000.00 €)
- ABC 32.000,00
- $ (32.000,00)
Import preview table not displayed correctly
By default, the import preview is set on commas as field separators, and quotation marks as text delimiters. If the CSV file does not have these settings, modify the Formatting options (displayed under the Import CSV file bar after selecting the CSV file).Change CSV file format in spreadsheet application
When editing and saving CSV files in spreadsheet applications, the computer’s regional settings are applied for the separator and delimiter. LinkQ suggests using OpenOffice or LibreOffice, as both applications allow modifications of all three options (from LibreOffice application, go to ‘Save As’ dialog box ‣ Check the box ‘Edit filter settings’ ‣ Save). Microsoft Excel can modify the encoding when saving (‘Save As’ dialog box ‣ ‘Tools’ drop-down menu ‣ Encoding tab).Difference between Database ID and External ID
Some fields define a relationship with another object. For example, the country of a contact is a link to a record of the ‘Country’ object. When such fields are imported, LinkQ has to recreate links between the different records. To help import such fields, LinkQ provides three mechanisms. For example, to reference the country of a contact, LinkQ proposes three different fields to import:- Country: the name or code of the country
- Country/Database ID: the unique LinkQ ID for a record, defined by the ID PostgreSQL column
- Country/External ID: the ID of this record referenced in another application (or the
.XMLfile that imported it)
- Country:
Nicaragua - Country/Database ID:
21 - Country/External ID:
base.ni
- Use Country: this is the easiest way when data comes from CSV files that have been created manually.
- Use Country/Database ID: this should rarely be used. It is mostly used by developers as the main advantage is to never have conflicts (there may be several records with the same name, but they always have a unique Database ID)
- Use Country/External ID: use External ID when importing data from a third-party application.
Field/External ID. The following two CSV files provide an example for products and their categories.
Import relation fields
An LinkQ object is always related to many other objects (e.g. a product is linked to product categories, attributes, vendors, etc.). To import those relations, the records of the related object need to be imported first, from their own list menu. This can be achieved by using either the name of the related record, or its ID, depending on the circumstances. The ID is expected when two records have the same name. In such a case add/ ID at the end of the column title (e.g. for product attributes: Product Attributes / Attribute / ID).
Options for multiple matches on fields
If, for example, there are two product categories with the child nameSellable (e.g. Misc. Products/Sellable & Other Products/Sellable), the validation is halted, but the data may still be imported. However, LinkQ recommends that the data is not imported because it will all be linked to the first Sellable category found in the Product Category list (Misc. Products/Sellable). LinkQ, instead, recommends modifying one of the duplicate’s values, or the product category hierarchy.
However, if the company does not wish to change the configuration of product categories, LinkQ recommends making use of the External ID for this field, ‘Category’.
Import many2many relationship fields
The tags should be separated by a comma, without any spacing. For example, if a customer needs to be linked to both tags:Manufacturer and Retailer then ‘Manufacturer,Retailer’ needs to be encoded in the same column of the CSV file.
Import one2many relationships
If a company wants to import a sales order with several order lines, a specific row must be reserved in the CSV file for each order line. The first order line is imported on the same row as the information relative to order. Any additional lines need an additional row that does not have any information in the fields relative to the order.Import image files
To import image files along with the uploaded CSV or Excel file, follow the next steps:- Add the image file names to the relevant Image column in the data file.
- Upload the data file or reload it by clicking Load Data File.
- Click Upload your files under the Files to import section.
- Select the relevant image files. The number of files selected appears next to the button.
- Click Test to verify that all data is valid.
- Click Import. During the import process, LinkQ performs a file check to automatically link the uploaded images to the imported data file. If there is no match, the data file is imported without any image.
Note
- The Files to import section is enabled if the product template has an Image column with all fields populated.
- The image file names in the data file must correspond to the uploaded image files.
- When importing a large number of images, specify the maximum batch size in megabytes and set a delay to prevent the system from becoming overloaded. To do so, enable the developer mode and fill in the Max size per batch and the Delay after each batch fields in the Files to import section. By default, the delay meets the RPC/API call limit defined in the LinkQ Cloud - Acceptable Use Policy
Value not provided for a specific field
If all fields are not set in the CSV file, LinkQ assigns the default value for every non-defined field. However, if fields are set with empty values in the CSV file, LinkQ sets the empty value in the field, instead of assigning the default value.Update data in LinkQ
Existing data can be updated in bulk through a data import, as long as the External ID remains consistent.Prepare data export
To update data through an import, first navigate to the data to be updated, and select the (List) icon to activate list view. On the far-left side of the list, tick the checkbox for any record to be updated. Then, click Actions button, and select Export from the drop-down menu. On the resulting Export Data pop-up window, tick the checkbox labeled, I want to update data (import-compatible export). This automatically includes the External ID in the export. Additionally, it limits the Fields to export list to only include fields that are able to be imported.NoteThe External ID field does not appear in the Fields to export list unless it is manually added, but it is still included in the export. However, if the I want to update data (import-compatible export) checkbox is ticked, it is included in the export.
Import updated data
After exporting, make any necessary changes to the data file. When the file is ready, it can be imported by following the same process as a normal data import.DangerWhen updating data, it is extremely important that the External ID remain consistent, as this is how the system identifies a record. If an ID is altered, or removed, the system may add a duplicate record, instead of updating the existing one.

