> For the complete documentation index, see [llms.txt](https://help.adalo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adalo.com/ja/integrations/sheetbridge-for-google-sheets/create-update-and-delete-rows-with-sheetbridge-crud.md).

# SheetBridgeでの行の作成、更新、削除（CRUD）

### **はじめに**

SheetBridgeの外部コレクションの設定が完了すると、通常のAdaloコレクションと同じように利用できます。フォームやアクションを使用して、Google スプレッドシートの行をリアルタイムで作成、更新、削除することが可能です。

***

### **開始前の準備**

* SheetBridgeの接続が正常に動作していること、およびシートに sheetbridge\_id 列が存在している必要があります。
* 変更内容をスプレッドシートに書き戻すには、Google スプレッドシートへの編集権限が必要です。
* **「id」**&#x3068;いうタイトルの列を作成することはできません。 作成した場合、行の更新時にエラーが発生します。
* 本番環境における書き込み処理（作成/更新/削除）はキューに投入され、非同期で行われるため、新しく作成または更新されたデータが表示されるまでに遅延が生じる場合があります。

***

### **新しい行を作成**

1. Adalo内で、SheetBridgeコレクションにレコードを作成するフォーム（Form）を追加します。
2. 各フォームの入力項目を、シートの対応するプロパティ（列）にマッピングします。
3. アプリをプレビューし、フォームを送信します。
4. Google スプレッドシートを確認します。自動生成された sheetbridge\_id とともに行が新しく追加されているはずです。

***

### **既存の行を更新**

1. SheetBridgeコレクションのレコードに対して、編集フォーム（Edit Form）または更新アクション（Update Action）を使用します。
2. 1つ以上のフィールドを更新して保存します。
3. 変更内容がGoogle スプレッドシートに反映されていることを確認します。

***

### **行を削除**

1. SheetBridgeコレクションのレコードに対して、削除アクション（Delete Action）（または削除アクションを設定したボタン）を追加します。
2. Google スプレッドシートから行が削除されたことを確認します。

{% hint style="warning" %}
**注： 行を削除すると、シートから完全に消去されます。過去の履歴データを残しておきたい場合は、「ステータス（status）」列などを用いた論理削除（ソフトデリート）の運用を検討してください。**
{% endhint %}


---

# 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://help.adalo.com/ja/integrations/sheetbridge-for-google-sheets/create-update-and-delete-rows-with-sheetbridge-crud.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.
