> 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-it/regole-modifica-in-blocco-e-arricchisci/how-to-use-actions-then-in-rules/azioni-per-gli-items/rule-action-build-item-group.md).

# Crea gruppi di ítem

Crea elenchi di valori dei campi per gli articoli che condividono lo stesso identificatore di gruppo.

usar **`crea gruppo di ítem`** per creare una lista di valori di campo per gli articoli che condividono un identificatore di gruppo.

Questa azione è utile per attività come:

* Creazione di una lista di colori, taglie o brand disponibili per ogni gruppo di prodotti.
* Aggiungere la stessa lista raggruppata a ogni ítem con lo stesso `item_group_id`.

***

## Esempio `Crea gruppo di ítem` casi d’uso

### Crea elenchi di marchi e colori per ogni gruppo di prodotti

en questo esempio, `id` identifica ogni singolo ítem. `item_group_id` identifica un gruppo di prodotti, così più articoli possono condividere lo stesso valore. Quando viene eseguita la regola, raccoglie gli `brand` y `color` valori di ogni ítem con lo stesso `item_group_id`. Causa poi scrive quei valori come elenchi in `brand_list` y `color_list` per ogni ítem di quel gruppo.

#### Come creare la regola

* Condizione: **`Per tutti gli articoli`**
* Azione: causa **`crear grupo de ítems`** in base a `ítem_group_id`
  * Negozio `brand` valori en `brand_list`
  * Negozio `color` valori en `color_list`

{% hint style="info" %}

#### Suggerimento

Crea campi vuoti, come `Lista brand` y `color_list`, prima di eseguire la Regla. L'azione memorizza gli elenchi generati in questi campi.
{% endhint %}

Prima di applicare l’azione, i campi della Lista sono vuoti:

| id | ítem\_group\_id | marchio     | colore | brand\_list | Lista colori |
| -- | --------------- | ----------- | ------ | ----------- | ------------ |
| 1  | 1               | Nike        | Bianco |             |              |
| 2  | 1               | Adidas      | Viola  |             |              |
| 3  | 1               | Puma        | Giallo |             |              |
| 4  | 2               | New Balance | Beige  |             |              |
| 5  | 2               | Furgoni     | Nero   |             |              |
| 6  | 3               | Crocs       | Verde  |             |              |

Dopo aver applicato l’azione, gli articoli con lo stesso `item_group_id` ricevi gli stessi elenchi:

| id | ítem\_group\_id | marchio     | colore | brand\_list        | Lista colori          |
| -- | --------------- | ----------- | ------ | ------------------ | --------------------- |
| 1  | 1               | Nike        | Bianco | Nike, Adidas, Puma | Bianco, viola, giallo |
| 2  | 1               | Adidas      | Viola  | Nike, Adidas, Puma | Bianco, viola, giallo |
| 3  | 1               | Puma        | Giallo | Nike, Adidas, Puma | Bianco, viola, giallo |
| 4  | 2               | New Balance | Beige  | New Balance, Vans  | Beige, nero           |
| 5  | 2               | Furgoni     | Nero   | New Balance, Vans  | Beige, nero           |
| 6  | 3               | Crocs       | Verde  | Crocs              | Verde                 |


---

# 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-it/regole-modifica-in-blocco-e-arricchisci/how-to-use-actions-then-in-rules/azioni-per-gli-items/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.
