> ## 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: README

> Execute COQL query. Zoho CRM Coql Execute Coqlquery reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Execute COQL query.

<Info>
  Tool ID: `zoho_crm_coql_execute_coqlquery`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
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={null}
deepline tools execute zoho_crm_coql_execute_coqlquery --input '{
  "select_query": "software companies hiring engineers"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {}
    ],
    "info": {
      "count": 123,
      "more_records": true
    }
  }
}
```

Use `deepline tools get 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={null}
  {
    "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).                                                         |

<Info>
  This output schema is too large to embed without slowing the page. Get the complete live contract with `deepline tools get zoho_crm_coql_execute_coqlquery --json`.
</Info>

## 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](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
