Create a query
appsmith_create_queryCreate a new query on a page against a datasource, providing query text and name for bindings.
Instructions
Creates a query on a page against an existing datasource. The plugin and workspace are taken from the datasource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Query text, e.g. the SQL statement. | |
| name | Yes | Query name, as referenced in bindings (e.g. Query1). | |
| pageId | Yes | Page the query belongs to. | |
| datasourceId | Yes | Datasource id, from appsmith_list_datasources. |