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

> List the fields of an object type in a custom Gong CRM integration. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the fields of an object type in a custom Gong CRM integration.

> [!NOTE]
>
> Tool ID: `gong_list_crm_schema_fields`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'gong_list_crm_schema_fields',
  {
    "integrationId": 123,
    "objectType": "ACCOUNT"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute gong_list_crm_schema_fields --input '{
  "integrationId": 123,
  "objectType": "ACCOUNT"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "requestId": "request_123",
    "objectTypeToSelectedFields": {}
  }
}
```

Use `deepline describe gong_list_crm_schema_fields --json` for the latest machine-readable contract.

## Input reference

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](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 } ] }}

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.integrationId` | `integer` | Yes | — | Integration ID generated when creating the integration Format: `int64`. |
| `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: `ACCOUNT`, `CONTACT`, `DEAL`, `LEAD`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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 reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.requestId` | `string` | No | — | A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes. |
| `result.data.objectTypeToSelectedFields` | `record` | No | — | selectedFields |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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>

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

* [Gong provider guide](https://deepline.com/docs/providers/gong/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.