# 動作成功後、失敗後自動的に次の動作を発火する

Dashcombでは既存のDBクエリを先発アクションとして、その後続アクションを指定することができます。後続動作は他の既存DBクエリの実行、メニューに移動、URLに移動、通知の送信など、ニーズに合わせて設定することができます。

## 準備

* 一つの画面に二つ以上のDBクエリを用意します。（[DBクエリの追加](/dashcomb-help-center/tips-and-tricks/add-a-database-query.md)）
  * 例えば、削除用のクエリと検索用のクエリ
  * ここでは、検索一覧の画面から選んだ１行を削除し検索一覧を更新する機能を例として説明します。

## 実現

* [クエリ領域](/dashcomb-help-center/ide/query-region.md)で「DBクエリ」タブをクリックします。
* 左側のリストから先発のDBクエリを選びます。
  * 例では、削除用のクエリを選びます。
* そのDBクエリが「成功時」、「失敗時」の「アクション」や「通知」を設定します。
  * 例では、「成功時」の「アクション」に検索用のクエリを選びます。
  * 例では、「失敗時」の「通知」に「削除が失敗しました」というメッセージを入れます。
  * 設定方法の詳細は[アクションエディタ](/dashcomb-help-center/ide/property-region/action-editor.md)にご参考ください。
* 「保存」ボタンを押すと、DBクエリの後続動作の指定ができました。

## 参照項目

* [データベースへの接続](/dashcomb-help-center/ide/others/dtassu/database.md)
* [新しいDBの追加](/dashcomb-help-center/tips-and-tricks/add-a-new-database.md)
* [DBクエリの追加](/dashcomb-help-center/tips-and-tricks/add-a-database-query.md)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dashcomb.com/dashcomb-help-center/tips-and-tricks/make-chained-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
