> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/aktionen/grids/create-a-grid/import-from-sanity.md).

# Aus Sanity importieren

Du kannst ein Grid erstellen, indem du Dokumente direkt aus deinem Sanity-Projekt importierst, sodass du mit deinen vorhandenen Inhalten in AirOps arbeiten kannst. Wenn du dein Sanity-Projekt noch nicht mit deinem AirOps-Workspace verbunden hast, wirst du dazu aufgefordert.

### So importierst du Daten aus Sanity

1. Klicken Sie auf die Schaltfläche "+" auf Ihrer Grid-Seite
2. Wählen Sie **Sanity** aus dem Dropdown-Menü der Importoptionen
3. Verbinde dich mit deinem Sanity-Projekt:
   * Wähle eine vorhandene Sanity-Authentifizierung aus dem Dropdown aus oder richte eine neue ein, indem du deinen **API-Token** und **Projekt-ID**
   * Klicken Sie auf **Weiter**
4. Wähle den zu importierenden Datensatz und Dokumenttyp aus:
   * Wenn dein Projekt mehrere Datensätze hat, wähle aus, aus welchem Datensatz importiert werden soll (standardmäßig "production")
   * Wähle den Sanity-Dokumenttyp (z. B. "post", "article") aus dem Dropdown aus
   * Klicken Sie auf **Weiter**
5. Wählen Sie aus, welche Datenspalten importiert werden sollen:
   * Aktiviere die Kontrollkästchen neben den Feldern, die du einschließen möchtest
   * Jedes Feld zeigt seinen Datentyp und eine Vorschau auf Beispieldaten
   * Hinweis: Es gibt ein Maximum von 100 Spalten
6. Klicken Sie auf **Weiter** um Ihre Daten in das Grid zu importieren

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-2f437a28857bc1962e932e63c3f69d0a311787d7%2Fgrid-import-sanity-01-import-wizard.png?alt=media" alt="Import from Sanity dialog on the dataset and document type step"><figcaption><p>Importiere Sanity-Daten in ein neues Grid.</p></figcaption></figure>

### Was importiert wird

Sobald der Import abgeschlossen ist, werden die folgenden Spalten automatisch in deinem Grid erstellt:

* **Sanity-Import**: Zeigt den Importstatus für jede Zeile an
* **Sanity-Dokument-ID**: Speichert die eindeutige Sanity-Dokumentkennung für jedes importierte Dokument
* **Erstellt am**: Das Erstellungsdatum des Dokuments in Sanity
* **Aktualisiert am**: Das Datum der letzten Aktualisierung des Dokuments in Sanity
* **Sanity-Status**: Eine Single-Select-Spalte, die angibt, ob das Dokument ist **Veröffentlicht** oder **Entwurf**
* **Deine ausgewählten Felder**: Jedes Feld, das du während der Einrichtung ausgewählt hast, wird dem passenden Grid-Spaltentyp zugeordnet

### Zuordnung der Feldtypen

Sanity-Feldtypen werden automatisch den am besten passenden Grid-Spaltentypen zugeordnet:

| Sanity-Feldtyp            | Grid-Spaltentyp   |
| ------------------------- | ----------------- |
| Zeichenkette              | Text              |
| Text                      | Text              |
| Zahl                      | Zahl              |
| Datum / Datum und Uhrzeit | Datum und Uhrzeit |
| Block (Portable Text)     | HTML              |
| Bild                      | Bild (URL)        |
| Datei                     | URL               |
| Slug                      | Text              |
| Referenz                  | Text              |
| Geopunkt                  | Text              |
| Array                     | JSON              |
| Objekt                    | JSON              |

### Entwurfs- und veröffentlichte Dokumente

Sanity speichert Entwurfs- und veröffentlichte Versionen von Dokumenten getrennt. Wenn beide Versionen vorhanden sind, importiert AirOps die zuletzt aktualisierte Version und gibt den Status des Dokuments in der **Sanity-Status** Spalte wieder. Entwurfs-Dokument-IDs (mit dem Präfix `Entwürfe.`) werden automatisch normalisiert.

### Importe erneut ausführen

Du kannst einen Import jederzeit erneut ausführen, um die neuesten Daten aus Sanity zu synchronisieren. Vorhandene Zeilen werden anhand der Sanity-Dokument-ID aktualisiert, und neue Dokumente werden als neue Zeilen hinzugefügt.

Sobald importiert, wird dein Sanity-Inhalt in deinem Grid angezeigt und ist bereit, mit AirOps-Workflows für Inhaltsoptimierung, SEO-Verbesserung, KI-gestützte Umschreibungen und mehr erweitert zu werden.


---

# 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://docs.airops.com/docs/de/aktionen/grids/create-a-grid/import-from-sanity.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.
