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

> Create a new global picklist. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Create a new global picklist.

<Info>
  Tool ID: `zoho_crm_global_picklists_create_global_picklist`
</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_global_picklists_create_global_picklist',
  {
    "global_picklists": [
      {
        "display_label": "example",
        "pick_list_values": [
          {
            "display_value": "example",
            "type": "unused"
          }
        ]
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_global_picklists_create_global_picklist --input '{
  "global_picklists": [
    {
      "display_label": "example",
      "pick_list_values": [
        {
          "display_value": "example",
          "type": "unused"
        }
      ]
    }
  ]
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "global_picklists": [
      {
        "code": "SUCCESS",
        "details": {
          "id": "id_123"
        },
        "message": "Example message",
        "status": "success"
      }
    ]
  }
}
```

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

## Input reference

Request body for creating a new global picklist.

| Name                       | Type    | Required | Default | Details                                                           |
| -------------------------- | ------- | -------- | ------- | ----------------------------------------------------------------- |
| `payload.global_picklists` | `array` | Yes      | —       | Array containing the global picklist to create. Maximum items: 1. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for creating a new global picklist.",
    "properties": {
      "global_picklists": {
        "type": "array",
        "description": "Array containing the global picklist to create.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Global picklist object with creation details.",
          "properties": {
            "display_label": {
              "type": "string",
              "description": "Display label of the global picklist.",
              "maxLength": 50
            },
            "api_name": {
              "type": "string",
              "description": "API name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.",
              "maxLength": 50,
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "Description of the global picklist.",
              "maxLength": 1000
            },
            "pick_list_values_sorted_lexically": {
              "type": "boolean",
              "description": "Indicates if picklist values should be sorted lexically."
            },
            "pick_list_values": {
              "type": "array",
              "description": "Array of picklist values. Only display_value and type are considered.",
              "maxItems": 5000,
              "items": {
                "type": "object",
                "description": "Picklist value object for creation.",
                "properties": {
                  "display_value": {
                    "type": "string",
                    "description": "The picklist display value(translated value if translation enabled).",
                    "maxLength": 120
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the picklist value (used or unused).",
                    "enum": [
                      "unused",
                      "used"
                    ]
                  }
                },
                "required": [
                  "display_value",
                  "type"
                ],
                "additionalProperties": true
              }
            }
          },
          "required": [
            "display_label",
            "pick_list_values"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "global_picklists"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                        | Type        | Required | Default | Details                                                                  |
| ------------------------------------------- | ----------- | -------- | ------- | ------------------------------------------------------------------------ |
| `result.data`                               | `object`    | Yes      | —       | Response object for successful creation of a global picklist.            |
| `result.data.global_picklists`              | `array`     | Yes      | —       | Array containing the created global picklist response. Maximum items: 1. |
| `result.data.global_picklists[].code`       | `"SUCCESS"` | Yes      | —       | Response code indicating successful creation. Allowed: `SUCCESS`.        |
| `result.data.global_picklists[].details`    | `object`    | Yes      | —       | Details of the created global picklist.                                  |
| `result.data.global_picklists[].details.id` | `string`    | Yes      | —       | Id of the resource. Format: `int64`.                                     |
| `result.data.global_picklists[].message`    | `string`    | Yes      | —       | Human-readable success message. Maximum length: 255.                     |
| `result.data.global_picklists[].status`     | `"success"` | Yes      | —       | Status of the operation. Allowed: `success`.                             |
| `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": "Response object for successful creation of a global picklist.",
        "properties": {
          "global_picklists": {
            "type": "array",
            "description": "Array containing the created global picklist response.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Created global picklist response details.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Response code indicating successful creation.",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the created global picklist.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Id of the resource.",
                      "format": "int64"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable success message.",
                  "maxLength": 255
                },
                "status": {
                  "type": "string",
                  "description": "Status of the operation.",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "global_picklists"
        ],
        "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)
