---
title: "Action: Barcodes"
description: "Imports product bar codes from an external source and attaches each code to an existing product in Sapera."
url: https://support.sapera.io/en/articles/592-action-barcodes
collection: "SyncTool"
updated: 2026-09-25
language: en
alternates: [da]
---

# Action: Barcodes

Imports product bar codes from an external source and attaches each code to an existing product in Sapera.

Imports product bar codes from an external source and attaches each code to an existing product in Sapera.

## How to use the action

1\. Select the action in the **Action** field. 2. Point to your data source – a **file** (CSV or Excel) or a **SQL query**. 3. Map the source columns to Sapera's fields in the column mapping (see _Source fields_ below). 4. Run **Compare** to see what will be created, changed or stay unchanged – without writing to Sapera. 5. Run **Update Sapera** to perform the import.

Use the **Allow create** and **Allow update** parameters to control whether new rows are created and whether existing ones are updated.

## How matching and updating works

Each row is matched on the **barcode** itself (Code). If the code does not exist it is created and linked to the given, existing product; a code can also be deleted.

-   The product the code is linked to must already exist. Direction: from file/SQL into Sapera.
    

## Key parameters

<table data-id="dbf75812-bf23-4121-b89c-294474dcda3c" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="aebd0645-2b23-4c79-aed1-f0865e25487d" style="text-align: left;"><strong>Parameter</strong></p></td><td colspan="1" rowspan="1"><p data-id="d567afd0-d9ce-4b2d-949c-474f70688ca9" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="98cb1f7d-61b2-4e41-8082-4e495af4b654" style="text-align: left;">AllowCreate</p></td><td colspan="1" rowspan="1"><p data-id="1bb4bd8f-9a56-4902-9211-cc994d4fd23f" style="text-align: left;">When enabled, bar codes that do not yet exist are added to their product.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="1e7e4fc0-5a70-471c-926f-2b180157c577" style="text-align: left;">AllowUpdate</p></td><td colspan="1" rowspan="1"><p data-id="630eb211-ba8c-41b0-8c05-edde7c440d50" style="text-align: left;">When enabled, existing bar codes may be re-linked to the product given in the source.</p></td></tr></tbody></table>

## Source fields

<table data-id="030f41db-62a1-42ef-a2bb-4846cd1770bf" style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><td colspan="1" rowspan="1"><p data-id="ef7c2976-d75a-4741-83c0-81fb0a3fe53e" style="text-align: left;"><strong>Field</strong></p></td><td colspan="1" rowspan="1"><p data-id="1edf4112-26a0-4def-a3d9-7f478531dcc8" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="2c0e37eb-8720-4681-ae5c-ff36946c8780" style="text-align: left;">Code</p></td><td colspan="1" rowspan="1"><p data-id="439b516f-9afd-46d9-86b4-09924a42e458" style="text-align: left;">The bar code value to import (the identifier of the row).</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="c43254cd-f5bb-4820-95eb-544108aa2955" style="text-align: left;">ProductIdentifier</p></td><td colspan="1" rowspan="1"><p data-id="5a74ceb7-5967-4647-91b3-f28f063f0b84" style="text-align: left;">The identifier of the product the bar code should be attached to.</p></td></tr></tbody></table>

* * *

See also the overview [SyncTool – actions](https://support.sapera.io/en/articles/547-synctool-handlinger.md).

* * *

**Want to know more?**

Read more in these related articles:

[

Standard parameters for all actions

The general parameters available on most SyncTool actions: step control, error handling, timeout, etc.

](https://support.sapera.io/en/articles/648.md)
