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

> GET /settings/automation/tasks. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

GET /settings/automation/tasks.

<Info>
  Tool ID: `zoho_crm_workflow_tasks_get_tasks`
</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_workflow_tasks_get_tasks',
  {
    "feature_type": "workflow",
    "module": "Leads",
    "per_page": 200
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_workflow_tasks_get_tasks --input '{
  "feature_type": "workflow",
  "module": "Leads",
  "per_page": 200
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "info": {
      "per_page": 123,
      "count": 123,
      "page": 123
    }
  }
}
```

Use `deepline tools get zoho_crm_workflow_tasks_get_tasks --json` for the latest machine-readable contract.

## Input reference

To retrieve the list of automation tasks configured in your Zoho CRM organization.

| Name                   | Type         | Required | Default | Details                                                                                                                                                   |
| ---------------------- | ------------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.feature_type` | `"workflow"` | No       | —       | To retrieve tasks based on their feature type. Allowed: `workflow`.                                                                                       |
| `payload.module`       | `"Leads"`    | No       | —       | To retrieve tasks based on their module. Allowed: `Leads`.                                                                                                |
| `payload.per_page`     | `200`        | No       | —       | Specify how many tasks to return per page. The default and the maximum possible value is 200. Allowed: `200`. Format: `int32`.                            |
| `payload.page`         | `1`          | No       | —       | To get the list of tasks from the respective pages. The default value is 1. Possible values: Positive integer values only. Allowed: `1`. Format: `int32`. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "To retrieve the list of automation tasks configured in your Zoho CRM organization.",
    "properties": {
      "feature_type": {
        "type": "string",
        "description": "To retrieve tasks based on their feature type.",
        "enum": [
          "workflow"
        ]
      },
      "module": {
        "type": "string",
        "description": "To retrieve tasks based on their module.",
        "enum": [
          "Leads"
        ]
      },
      "per_page": {
        "type": "integer",
        "description": "Specify how many tasks to return per page. The default and the maximum possible value is 200.",
        "enum": [
          200
        ],
        "format": "int32"
      },
      "page": {
        "type": "integer",
        "description": "To get the list of tasks from the respective pages. The default value is 1. Possible values: Positive integer values only.",
        "enum": [
          1
        ],
        "format": "int32"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                                  | Type                                            | Required | Default | Details                                                                                                        |
| ----------------------------------------------------- | ----------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `result.data`                                         | `object`                                        | Yes      | —       | The successful response structure for retrieving tasks, including lists of tasks and pagination info.          |
| `result.data.tasks`                                   | `array`                                         | No       | —       | Field: tasks Maximum items: 61.                                                                                |
| `result.data.tasks[].created_time`                    | `string`                                        | No       | —       | Field: created\_time Maximum length: 255.                                                                      |
| `result.data.tasks[].lock_status`                     | `object`                                        | No       | —       | Represents the lock status of a resource, indicating whether it is currently locked or not.                    |
| `result.data.tasks[].lock_status.locked`              | `boolean`                                       | No       | —       | Field: locked                                                                                                  |
| `result.data.tasks[].editable`                        | `boolean`                                       | No       | —       | Field: editable                                                                                                |
| `result.data.tasks[].module`                          | `object`                                        | Yes      | —       | Contains information about a module, including labels and API names.                                           |
| `result.data.tasks[].module.singular_label`           | `string`                                        | No       | —       | Field: singular\_label Maximum length: 255.                                                                    |
| `result.data.tasks[].module.moduleName`               | `string`                                        | No       | —       | Field: moduleName Maximum length: 255.                                                                         |
| `result.data.tasks[].module.id`                       | `string`                                        | No       | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.tasks[].module.plural_label`             | `string`                                        | No       | —       | Field: plural\_label Maximum length: 255.                                                                      |
| `result.data.tasks[].module.api_name`                 | `string`                                        | Yes      | —       | Field: api\_name Maximum length: 255.                                                                          |
| `result.data.tasks[].related_module`                  | `object \| null`                                | No       | —       | Describes a related module, with details about its labels, API name, and ID.                                   |
| `result.data.tasks[].related_module.singular_label`   | `string`                                        | No       | —       | Field: singular\_label Maximum length: 255.                                                                    |
| `result.data.tasks[].related_module.plural_label`     | `string`                                        | No       | —       | Field: plural\_label Maximum length: 255.                                                                      |
| `result.data.tasks[].related_module.api_name`         | `string`                                        | No       | —       | Field: api\_name Maximum length: 255.                                                                          |
| `result.data.tasks[].related_module.id`               | `string`                                        | No       | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.tasks[].related_module.module_name`      | `string`                                        | No       | —       | Field: module\_name Maximum length: 255.                                                                       |
| `result.data.tasks[].deletable`                       | `boolean`                                       | No       | —       | Field: deletable                                                                                               |
| `result.data.tasks[].source`                          | `string`                                        | No       | —       | Field: source Maximum length: 255.                                                                             |
| `result.data.tasks[].created_by`                      | `object`                                        | No       | —       | Provides details about the creator of an entity, including their name and ID.                                  |
| `result.data.tasks[].created_by.name`                 | `string`                                        | No       | —       | Field: name Maximum length: 255.                                                                               |
| `result.data.tasks[].created_by.id`                   | `string`                                        | No       | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.tasks[].notify`                          | `boolean`                                       | No       | —       | Field: notify                                                                                                  |
| `result.data.tasks[].feature_type`                    | `string`                                        | No       | —       | Field: feature\_type Maximum length: 255.                                                                      |
| `result.data.tasks[].field_mappings`                  | `array`                                         | Yes      | —       | Field: field\_mappings Maximum items: 20.                                                                      |
| `result.data.tasks[].field_mappings[].display_value`  | `string`                                        | No       | —       | Field: display\_value Maximum length: 255.                                                                     |
| `result.data.tasks[].field_mappings[].field`          | `object`                                        | No       | —       | Describes a field in a module, including its API name and identifier.                                          |
| `result.data.tasks[].field_mappings[].field.api_name` | `string`                                        | Yes      | —       | Field: api\_name Maximum length: 255.                                                                          |
| `result.data.tasks[].field_mappings[].field.id`       | `string`                                        | Yes      | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.tasks[].field_mappings[].type`           | `"static" \| "merge_field" \| "execution_time"` | Yes      | —       | Field: type Allowed: `static`, `merge_field`, `execution_time`. Maximum length: 255.                           |
| `result.data.tasks[].field_mappings[].value`          | `string \| record \| array`                     | Yes      | —       | Field: value                                                                                                   |
| `result.data.tasks[].modified_time`                   | `string`                                        | No       | —       | Field: modified\_time Maximum length: 255.                                                                     |
| `result.data.tasks[].associated`                      | `boolean`                                       | No       | —       | Field: associated                                                                                              |
| `result.data.tasks[].modified_by`                     | `object`                                        | No       | —       | Provides details about the individual who modified an entity, including their name and ID.                     |
| `result.data.tasks[].modified_by.name`                | `string`                                        | No       | —       | Field: name Maximum length: 255.                                                                               |
| `result.data.tasks[].modified_by.id`                  | `string`                                        | No       | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.tasks[].name`                            | `string`                                        | Yes      | —       | Field: name Maximum length: 255.                                                                               |
| `result.data.tasks[].id`                              | `string`                                        | No       | —       | Field: id Maximum length: 255.                                                                                 |
| `result.data.info`                                    | `object`                                        | No       | —       | Details about pagination for resource listings, such as count, page number, and if more records are available. |
| `result.data.info.per_page`                           | `integer`                                       | No       | —       | Field: per\_page Format: `int32`.                                                                              |
| `result.data.info.count`                              | `integer`                                       | No       | —       | Field: count Format: `int32`.                                                                                  |
| `result.data.info.page`                               | `integer`                                       | No       | —       | Field: page Format: `int32`.                                                                                   |
| `result.data.info.more_records`                       | `boolean`                                       | No       | —       | Field: more\_records                                                                                           |
| `result.meta`                                         | `object`                                        | No       | —       | Additional response metadata (status, paging).                                                                 |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "The successful response structure for retrieving tasks, including lists of tasks and pagination info.",
        "properties": {
          "tasks": {
            "type": "array",
            "description": "Field: tasks",
            "maxItems": 61,
            "items": {
              "type": "object",
              "description": "Describes tasks within the system, including metadata, status, fields, and associated entities.",
              "properties": {
                "created_time": {
                  "type": "string",
                  "description": "Field: created_time",
                  "maxLength": 255
                },
                "lock_status": {
                  "type": "object",
                  "description": "Represents the lock status of a resource, indicating whether it is currently locked or not.",
                  "properties": {
                    "locked": {
                      "type": "boolean",
                      "description": "Field: locked"
                    }
                  },
                  "additionalProperties": false
                },
                "editable": {
                  "type": "boolean",
                  "description": "Field: editable"
                },
                "module": {
                  "type": "object",
                  "description": "Contains information about a module, including labels and API names.",
                  "properties": {
                    "singular_label": {
                      "type": "string",
                      "description": "Field: singular_label",
                      "maxLength": 255
                    },
                    "moduleName": {
                      "type": "string",
                      "description": "Field: moduleName",
                      "maxLength": 255
                    },
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    },
                    "plural_label": {
                      "type": "string",
                      "description": "Field: plural_label",
                      "maxLength": 255
                    },
                    "api_name": {
                      "type": "string",
                      "description": "Field: api_name",
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "api_name"
                  ],
                  "additionalProperties": false
                },
                "related_module": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Describes a related module, with details about its labels, API name, and ID.",
                  "properties": {
                    "singular_label": {
                      "type": "string",
                      "description": "Field: singular_label",
                      "maxLength": 255
                    },
                    "plural_label": {
                      "type": "string",
                      "description": "Field: plural_label",
                      "maxLength": 255
                    },
                    "api_name": {
                      "type": "string",
                      "description": "Field: api_name",
                      "maxLength": 255
                    },
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    },
                    "module_name": {
                      "type": "string",
                      "description": "Field: module_name",
                      "maxLength": 255
                    }
                  },
                  "additionalProperties": false
                },
                "deletable": {
                  "type": "boolean",
                  "description": "Field: deletable"
                },
                "source": {
                  "type": "string",
                  "description": "Field: source",
                  "maxLength": 255
                },
                "created_by": {
                  "type": "object",
                  "description": "Provides details about the creator of an entity, including their name and ID.",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Field: name",
                      "maxLength": 255
                    },
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    }
                  },
                  "additionalProperties": false
                },
                "notify": {
                  "type": "boolean",
                  "description": "Field: notify"
                },
                "feature_type": {
                  "type": "string",
                  "description": "Field: feature_type",
                  "maxLength": 255
                },
                "field_mappings": {
                  "type": "array",
                  "description": "Field: field_mappings",
                  "maxItems": 20,
                  "items": {
                    "type": "object",
                    "description": "Defines mappings of fields, including display values, types, and associated fields.",
                    "properties": {
                      "display_value": {
                        "type": "string",
                        "description": "Field: display_value",
                        "maxLength": 255
                      },
                      "field": {
                        "type": "object",
                        "description": "Describes a field in a module, including its API name and identifier.",
                        "properties": {
                          "api_name": {
                            "type": "string",
                            "description": "Field: api_name",
                            "maxLength": 255
                          },
                          "id": {
                            "type": "string",
                            "description": "Field: id",
                            "maxLength": 255
                          }
                        },
                        "required": [
                          "api_name",
                          "id"
                        ],
                        "additionalProperties": false
                      },
                      "type": {
                        "type": "string",
                        "description": "Field: type",
                        "maxLength": 255,
                        "enum": [
                          "static",
                          "merge_field",
                          "execution_time"
                        ]
                      },
                      "value": {
                        "description": "Field: value",
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "Field: value",
                            "maxLength": 255
                          },
                          {
                            "type": "object",
                            "description": "Field: value",
                            "additionalProperties": true
                          },
                          {
                            "type": "array",
                            "description": "Field: value",
                            "maxItems": 20,
                            "items": {
                              "type": "string",
                              "description": "Array item for field value",
                              "maxLength": 20
                            }
                          }
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "modified_time": {
                  "type": "string",
                  "description": "Field: modified_time",
                  "maxLength": 255
                },
                "associated": {
                  "type": "boolean",
                  "description": "Field: associated"
                },
                "modified_by": {
                  "type": "object",
                  "description": "Provides details about the individual who modified an entity, including their name and ID.",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Field: name",
                      "maxLength": 255
                    },
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    }
                  },
                  "additionalProperties": false
                },
                "name": {
                  "type": "string",
                  "description": "Field: name",
                  "maxLength": 255
                },
                "id": {
                  "type": "string",
                  "description": "Field: id",
                  "maxLength": 255
                }
              },
              "required": [
                "field_mappings",
                "module",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "info": {
            "type": "object",
            "description": "Details about pagination for resource listings, such as count, page number, and if more records are available.",
            "properties": {
              "per_page": {
                "type": "integer",
                "description": "Field: per_page",
                "format": "int32"
              },
              "count": {
                "type": "integer",
                "description": "Field: count",
                "format": "int32"
              },
              "page": {
                "type": "integer",
                "description": "Field: page",
                "format": "int32"
              },
              "more_records": {
                "type": "boolean",
                "description": "Field: more_records"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## 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)
