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

# Gong List Crm Schema Fields: Inputs, Cost & CLI Example

> List Schema Fields (/v2/crm/entity-schema). Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=gong_list_crm_schema_fields:{"integrationId":"{{integrationId}}","objectType":"ACCOUNT"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                    | Type                                         | Required | Default | Description                                                                                                                         |
| ----------------------- | -------------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `payload.integrationId` | `integer`                                    | Yes      |         | Integration ID generated when creating the integration                                                                              |
| `payload.objectType`    | `"ACCOUNT" \| "CONTACT" \| "DEAL" \| "LEAD"` | Yes      |         | Type of object to retrieve the schema fields for (case-sensitive). Omitting this parameter returns the schema for all object types. |

### Allowed values

| Field                | Allowed values                       |
| -------------------- | ------------------------------------ |
| `payload.objectType` | `ACCOUNT`, `CONTACT`, `DEAL`, `LEAD` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": ".public-api-info { background: rgb(222, 235, 255);}.public-api-tip { background: rgb(227, 252, 239);}.public-api-parameter { background: rgba(9,30,66,0.08);}.public-api-note { background: rgb(234, 230, 255);}.public-api-important { background: rgb(255, 250, 230);}.public-api-critical { background: rgb(255, 235, 230);}table, th, td { border: 1px solid gray; border-collapse: collapse;}th, td { padding: 5px;}th { text-align: left;}img { border: 2px solid #D3D5D9;} Retrieves a list of the object schema fields. When accessed using a bearer token, this endpoint requires the scope 'api:crm:schema'. Example Request GET https://api.gong.io/v2/crm/entity-schema?integrationId=6286478263646&objectType=ACCOUNT Response { \"requestId\": \"afjkzqkqglog7ueki5\", \"objectTypeToSelectedFields\": { \"ACCOUNT\": [ { \"name\": \"accountTypePicklist\", \"label\": \"Account Type\", \"type\": \"PICKLIST\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null }, { \"name\": \"accountTypePicklist2\", \"label\": \"Account Type2\", \"type\": \"PICKLIST\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null }, { \"name\": \"fooBar\", \"label\": \"Foo Bar\", \"type\": \"STRING\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null } ] }}",
    "properties": {
      "integrationId": {
        "type": "integer",
        "description": "Integration ID generated when creating the integration",
        "format": "int64"
      },
      "objectType": {
        "type": "string",
        "description": "Type of object to retrieve the schema fields for (case-sensitive). Omitting this parameter returns the schema for all object types.",
        "enum": [
          "ACCOUNT",
          "CONTACT",
          "DEAL",
          "LEAD"
        ]
      }
    },
    "required": [
      "integrationId",
      "objectType"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `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": "Provider response payload.",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes."
          },
          "objectTypeToSelectedFields": {
            "type": "object",
            "description": "selectedFields",
            "additionalProperties": {
              "type": "array",
              "description": "selectedFields",
              "items": {
                "type": "object",
                "description": "selectedFields",
                "properties": {
                  "uniqueName": {
                    "type": "string",
                    "description": "The unique name of the field in the CRM system"
                  },
                  "label": {
                    "type": "string",
                    "description": "The label to use in the UI for this field"
                  },
                  "type": {
                    "type": "string",
                    "description": "The field type (case-sensitive). Must be one of the types listed above.",
                    "enum": [
                      "DATE",
                      "DATETIME",
                      "NUMBER",
                      "PERCENT",
                      "CURRENCY",
                      "ID",
                      "URL",
                      "STRING",
                      "BOOLEAN",
                      "PHONENUMBER",
                      "EMAILADDRESS",
                      "PICKLIST",
                      "REFERENCE",
                      "STRINGARRAY"
                    ]
                  },
                  "lastModified": {
                    "type": "string",
                    "description": "The date and time the schema was last modified. Valid format: ISO-8601 format without milliseconds e.g., \"2020-12-17T13:45:01Z\""
                  },
                  "isDeleted": {
                    "type": "boolean",
                    "description": "When true, deletes the field from the schema and its value is removed from all objects. Use with caution"
                  },
                  "referenceTo": {
                    "type": "string",
                    "description": "The object type this field refers to. Required for field of type REFERENCE. Must be one of \"ACCOUNT\", \"CONTACT\", \"DEAL\", \"LEAD\" or \"USER\""
                  },
                  "orderedValueList": {
                    "type": "array",
                    "description": "The list of values for the field. Required for PICKLIST fields",
                    "items": {
                      "type": "string",
                      "description": "The list of values for the field. Required for PICKLIST fields"
                    }
                  }
                },
                "required": [
                  "label",
                  "type",
                  "uniqueName"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute gong_list_crm_schema_fields --payload '{
  "integrationId": "integer",
  "objectType": "ACCOUNT"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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