---
title: "Action: WebShop categories"
description: "Imports web shop categories, optionally building a parent/child hierarchy and mapping each category to a search tag."
url: https://support.sapera.io/en/articles/594-action-webshop-categories
collection: "SyncTool"
updated: 2026-09-25
language: en
alternates: [da]
---

# Action: WebShop categories

Imports web shop categories, optionally building a parent/child hierarchy and mapping each category to a search tag.

Imports web shop categories, optionally building a parent/child hierarchy and mapping each category to a search tag.

## 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 category is identified by **parent + name**. Set Parent to build a category hierarchy.

-   Depending on the setup, each category can also be mirrored to a matching **search tag**. The given parent must exist. Direction: from file/SQL into Sapera.
    

## Key parameters

<table data-id="f27a4095-145e-47b7-9f35-43a74d8ee4ff" 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="c6a97a1a-a2a7-40df-b18e-c87ae3382bd0" style="text-align: left;"><strong>Parameter</strong></p></td><td colspan="1" rowspan="1"><p data-id="9c118810-7647-48e0-a6be-e12a366ef2a1" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="8276dc25-5d51-4d2f-9130-b644a9d7a337" style="text-align: left;">AllowCreate</p></td><td colspan="1" rowspan="1"><p data-id="bc58c2a2-4abc-4c80-a695-1672012cef03" style="text-align: left;">When enabled, web shop categories that do not exist are created.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="95341883-20a1-4ed5-b46f-7740912ff7c6" style="text-align: left;">AllowUpdate</p></td><td colspan="1" rowspan="1"><p data-id="9bf8d435-b80e-407c-9675-da2d18120486" style="text-align: left;">When enabled, existing web shop categories are updated.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="057a835e-fa6f-40f0-9362-984ef5d2a385" style="text-align: left;">MapToSearchTag</p></td><td colspan="1" rowspan="1"><p data-id="8595ddd0-12ab-4083-8425-0a2830349b82" style="text-align: left;">When enabled, each category is linked to a matching search tag.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="205fe39f-4ca8-4475-9a8e-368c650b5540" style="text-align: left;">SearchTagType</p></td><td colspan="1" rowspan="1"><p data-id="0382911e-e4c8-4076-a807-d1eb21d205fb" style="text-align: left;">Display name of the search tag type used when mapping categories to search tags.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="4264c2d4-1e79-49df-966c-018d9ddc77e1" style="text-align: left;">WebShopName</p></td><td colspan="1" rowspan="1"><p data-id="e10f72cc-9dfe-4413-a165-e430081b942f" style="text-align: left;">Name of the web shop the categories belong to.</p></td></tr></tbody></table>

## Source fields

<table data-id="c7db1d26-f252-4324-8be3-eb0e50f90985" 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="4e4866ef-d1ca-4daf-aaff-1670df77bd2e" style="text-align: left;"><strong>Field</strong></p></td><td colspan="1" rowspan="1"><p data-id="89364956-e263-4c12-a595-b6ea63802c68" style="text-align: left;"><strong>Explanation</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="af4c2df6-fe94-47a5-8547-76c7c1a6f822" style="text-align: left;">Description</p></td><td colspan="1" rowspan="1"><p data-id="8382b27f-4292-4f93-a852-c5bb6e391415" style="text-align: left;">The SEO description text shown for the category.</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="2fff14c0-6198-4831-96fd-d3b7b30a6e72" style="text-align: left;">Name</p></td><td colspan="1" rowspan="1"><p data-id="94072b9b-c0ed-4ec3-b545-badc5aaad3be" style="text-align: left;">The name of the web shop category (the identifier of the row).</p></td></tr><tr><td colspan="1" rowspan="1"><p data-id="c2dec0dd-9270-41df-9ae4-d1cfdfe728c1" style="text-align: left;">Parent</p></td><td colspan="1" rowspan="1"><p data-id="8c669636-b987-4203-87c9-667cfcf28c53" style="text-align: left;">The name of the parent category, used to build the category hierarchy.</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)
