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=ACCOUNTResponse
{ "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 } ] }}
Integration ID generated when creating the integration
Type of object to retrieve the schema fields for (case-sensitive).
Omitting this parameter returns the schema for all object types.
Successfully retrieved crm schema fields
A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
selectedFields
selectedFields
selectedFields
The unique name of the field in the CRM system
The label to use in the UI for this field
The field type (case-sensitive). Must be one of the types listed above.
The date and time the schema was last modified.
Valid format: ISO-8601 format without milliseconds e.g., "2020-12-17T13:45:01Z"
When true, deletes the field from the schema and its value is removed from all objects. Use with caution
The object type this field refers to. Required for field of type REFERENCE. Must be one of "ACCOUNT", "CONTACT", "DEAL", "LEAD" or "USER"
The list of values for the field. Required for PICKLIST fields
The list of values for the field. Required for PICKLIST fields
Malformed request
A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
Error messages.
Access denied
A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
Error messages.
API request limit exceeded
A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
Error messages.
Failed to complete the operation due to an unexpected error
A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
Error messages.