> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: Coql Execute Coqlquery

> Query Zoho CRM records with a SQL-like COQL select statement and get the matching rows. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Query Zoho CRM records with a SQL-like COQL select statement and get the matching rows.

> [!NOTE]
>
> Tool ID: `zoho_crm_coql_execute_coqlquery`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_coql_execute_coqlquery',
  {
    "select_query": "software companies hiring engineers"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_coql_execute_coqlquery --input '{
  "select_query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": [
      {}
    ],
    "info": {
      "count": 123,
      "more_records": true
    }
  }
}
```

Use `deepline describe zoho_crm_coql_execute_coqlquery --json` for the latest machine-readable contract.

## Input reference

Request Body to get records data using COQL

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.select_query` | `string` | Yes | — | COQL select query to fetch records data Maximum length: 2147483647. |
| `payload.include_meta` | `array` | No | — | List of metadata to include in the response. Currently only supports 'fields' to get field metadata for select columns. Minimum items: 1. Maximum items: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Request Body to get records data using COQL",
    "properties": {
      "select_query": {
        "type": "string",
        "description": "COQL select query to fetch records data",
        "maxLength": 2147483647
      },
      "include_meta": {
        "type": "array",
        "description": "List of metadata to include in the response. Currently only supports 'fields' to get field metadata for select columns.",
        "minItems": 1,
        "maxItems": 1,
        "items": {
          "type": "string",
          "description": "Metadata type to include",
          "enum": [
            "fields"
          ]
        }
      }
    },
    "required": [
      "select_query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response containing matching records and pagination info |
| `result.data.data` | `array` | Yes | — | Root key containing list of records Minimum items: 1. Maximum items: 200. |
| `result.data.info` | `object` | Yes | — | Pagination and count information |
| `result.data.info.count` | `integer` | Yes | — | Number of records returned Format: `int32`. |
| `result.data.info.more_records` | `boolean` | Yes | — | Indicates if there are more records available |
| `result.data.fields` | `record` | No | — | Field metadata for the select columns. Keys are field API names and values are field metadata objects. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe zoho_crm_coql_execute_coqlquery --json`.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.