> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/item-aktionen/rule-action-build-item-group.md).

# Item-Gruppen erstellen

Erstelle Listen mit Feldwerten für Items, die dieselbe Gruppenkennung haben.

Verwende **`Artikelgruppe erstellen`** um eine Liste von Feldwerten für Items zu erstellen, die dieselbe Gruppenkennung haben.

Diese Aktion ist für Aufgaben wie die folgenden nützlich:

* Eine Liste der verfügbaren Farben, Größen oder Marken für jede Produktgruppe erstellen.
* Dieselbe gruppierte Liste zu jedem Item mit derselben `item_group_id`.

***

## Beispiel `Artikelgruppe erstellen` Anwendungsfälle

### Marken- und Farblisten für jede Produktgruppe erstellen

In diesem Beispiel `id` wird jedes einzelne Item identifiziert. `item_group_id` identifiziert eine Produktgruppe. Daher können mehrere Items denselben Wert haben. Wenn die Regel ausgeführt wird, sammelt sie die `brand` und `color` Werte aller Items mit derselben `item_group_id`. Anschließend schreibt sie diese Werte als Listen in `brand_list` und `color_list` für jedes Item in dieser Gruppe.

#### So erstellst du die Regel

* Bedingung: **`Für alle Items`**
* Aktion: DANN **`Artikelgruppe erstellen`** basierend auf `item_group_id`
  * Speichern `brand` Werte in `brand_list`
  * Shop `color` Werte in `color_list`

{% hint style="info" %}

#### Tipp

Erstelle leere Felder, zum Beispiel `brand_list` und `color_list`, bevor du die Regel ausführst. Die Aktion speichert die generierten Listen in diesen Feldern.
{% endhint %}

Bevor du die Aktion ausführst, sind die Listenfelder leer:

| id | item\_group\_id | Marke       | Farbe   | Markenliste | color\_list |
| -- | --------------- | ----------- | ------- | ----------- | ----------- |
| 1  | 1               | Nike        | Weiß    |             |             |
| 2  | 1               | Adidas      | Lila    |             |             |
| 3  | 1               | Puma        | Gelb    |             |             |
| 4  | 2               | New Balance | Beige   |             |             |
| 5  | 2               | Vans        | Schwarz |             |             |
| 6  | 3               | Crocs       | Grün    |             |             |

Nachdem du die Aktion angewendet hast, erhalten Items mit derselben `item_group_id` dieselben Listen:

| id | item\_group\_id | Marke       | Farbe   | Markenliste        | color\_list      |
| -- | --------------- | ----------- | ------- | ------------------ | ---------------- |
| 1  | 1               | Nike        | Weiß    | Nike, Adidas, Puma | Weiß, Lila, Gelb |
| 2  | 1               | Adidas      | Lila    | Nike, Adidas, Puma | Weiß, Lila, Gelb |
| 3  | 1               | Puma        | Gelb    | Nike, Adidas, Puma | Weiß, Lila, Gelb |
| 4  | 2               | New Balance | Beige   | New Balance, Vans  | Beige, Schwarz   |
| 5  | 2               | Vans        | Schwarz | New Balance, Vans  | Beige, Schwarz   |
| 6  | 3               | Crocs       | Grün    | Crocs              | Grün             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/item-aktionen/rule-action-build-item-group.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
