> ## 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 field dependency for a layout. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Create a new field dependency for a layout.

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

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get zoho_crm_map_dependency_create_map_dependency --json
```

## Example response

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

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

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

## Input reference

Request body for creating a field dependency

| Name                     | Type     | Required | Default | Details                                                                                                            |
| ------------------------ | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| `payload.module`         | `string` | Yes      | —       | API name of the module to which the layout belongs Maximum length: 50. Pattern: `^[A-Za-z][A-Za-z0-9_]*$`.         |
| `payload.layoutId`       | `string` | Yes      | —       | The unique identifier of the layout Format: `int64`. Pattern: `^[0-9]+$`.                                          |
| `payload.map_dependency` | `array`  | Yes      | —       | Array containing the field dependency to create. Only one dependency can be created per request. Maximum items: 1. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for creating a field dependency",
    "properties": {
      "module": {
        "type": "string",
        "description": "API name of the module to which the layout belongs",
        "maxLength": 50,
        "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
      },
      "layoutId": {
        "type": "string",
        "description": "The unique identifier of the layout",
        "pattern": "^[0-9]+$",
        "format": "int64"
      },
      "map_dependency": {
        "type": "array",
        "description": "Array containing the field dependency to create. Only one dependency can be created per request.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Field dependency configuration",
          "properties": {
            "parent": {
              "type": "object",
              "description": "Reference to a field with ID and API name",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the field",
                  "format": "int64"
                },
                "api_name": {
                  "type": "string",
                  "description": "The API name of the field",
                  "maxLength": 50
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "child": {
              "type": "object",
              "description": "Reference to a field with ID and API name",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique identifier of the field",
                  "format": "int64"
                },
                "api_name": {
                  "type": "string",
                  "description": "The API name of the field",
                  "maxLength": 50
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "pick_list_values": {
              "type": "array",
              "description": "Mapping between parent picklist values and child picklist values",
              "maxItems": 2000,
              "items": {
                "type": "object",
                "description": "Parent picklist value with its mapped child values for create/update operations",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The unique identifier of the parent picklist option",
                    "format": "int64"
                  },
                  "actual_value": {
                    "type": "string",
                    "description": "The actual value of the parent picklist option",
                    "maxLength": 120
                  },
                  "display_value": {
                    "type": "string",
                    "description": "The display value of the parent picklist option",
                    "maxLength": 120
                  },
                  "maps": {
                    "type": "array",
                    "description": "Child picklist values mapped to this parent value",
                    "maxItems": 2000,
                    "items": {
                      "type": "object",
                      "description": "Child picklist option reference. For examples, may include actual_value and display_value.",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The unique identifier of the child picklist option",
                          "format": "int64"
                        },
                        "actual_value": {
                          "type": "string",
                          "description": "The actual value of the child picklist option (optional for request, shown in examples for clarity)",
                          "maxLength": 120
                        },
                        "display_value": {
                          "type": "string",
                          "description": "The display value of the child picklist option (optional for request, shown in examples for clarity)",
                          "maxLength": 120
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "maps"
                ],
                "additionalProperties": false
              }
            },
            "internal": {
              "type": "boolean",
              "description": "Indicates whether the dependency is system defined or created by user"
            },
            "active": {
              "type": "boolean",
              "description": "Indicates whether the dependency is active in the layout"
            },
            "id": {
              "type": "string",
              "description": "The unique identifier of the dependency (for updates)",
              "format": "int64"
            },
            "source": {
              "type": "integer",
              "description": "Source through which dependency is created. 1 represents CRM.",
              "enum": [
                1
              ],
              "format": "int32"
            },
            "category": {
              "type": "integer",
              "description": "The category of the dependency",
              "enum": [
                0,
                1
              ],
              "format": "int32"
            }
          },
          "required": [
            "parent",
            "child",
            "pick_list_values"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "module",
      "layoutId",
      "map_dependency"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                      | Type        | Required | Default | Details                                                  |
| ----------------------------------------- | ----------- | -------- | ------- | -------------------------------------------------------- |
| `result.data`                             | `object`    | Yes      | —       | Success response for creating a field dependency         |
| `result.data.map_dependency`              | `array`     | Yes      | —       | Array containing the creation result Maximum items: 1.   |
| `result.data.map_dependency[].status`     | `"success"` | Yes      | —       | Status of the operation Allowed: `success`.              |
| `result.data.map_dependency[].code`       | `"SUCCESS"` | Yes      | —       | Success code Allowed: `SUCCESS`.                         |
| `result.data.map_dependency[].message`    | `string`    | Yes      | —       | Success message Maximum length: 500.                     |
| `result.data.map_dependency[].details`    | `object`    | Yes      | —       | Details of the operation result                          |
| `result.data.map_dependency[].details.id` | `string`    | Yes      | —       | The unique identifier of the dependency Format: `int64`. |
| `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": "Success response for creating a field dependency",
        "properties": {
          "map_dependency": {
            "type": "array",
            "description": "Array containing the creation result",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Standard success response structure",
              "properties": {
                "status": {
                  "type": "string",
                  "description": "Status of the operation",
                  "enum": [
                    "success"
                  ]
                },
                "code": {
                  "type": "string",
                  "description": "Success code",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Success message",
                  "maxLength": 500
                },
                "details": {
                  "type": "object",
                  "description": "Details of the operation result",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The unique identifier of the dependency",
                      "format": "int64"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "status",
                "code",
                "message",
                "details"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "map_dependency"
        ],
        "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)
