Skip to content

Zoho: Get related records count schemas

19 Zoho schemas with complete fields and constraints.

← Get related records count operations · All schemas

Get related records count — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents the request payload for counting related records. Contains an array of related list count specifications, each identifying a related list and optional filtering criteria.
Additional keys: not allowed
get_related_records_countarrayRequired within parentRepresents the array of related list count request objects. Each object specifies a related list to query and optional filtering criteria to apply before counting.
Maximum items: 20
Minimum items: 1
get_related_records_count[]ModelEach itemExpand Get related records count — request body — body get related records count item

Referenced models: Get related records count — request body — body get related records count item

Get related records count — request body — body get related records count item

FieldTypePresenceDescription and constraints
$objectRootRepresents a single related list count specification, including the target related list and optional filtering criteria to apply before counting.
Additional keys: not allowed
paramsModelOptionalExpand Get related records count — request body — body get related records count item params
related_listModelRequired within parentExpand Get related records count — request body — body get related records count item related list

Referenced models: Get related records count — request body — body get related records count item params, Get related records count — request body — body get related records count item related list

Get related records count — request body — body get related records count item params

FieldTypePresenceDescription and constraints
$objectRootRepresents optional filtering and selection parameters applied to related records before counting. Includes support for approval status, conversion status, category type, and field-level equality filters.
Additional keys: not allowed
approval_statestringOptionalRepresents the approval workflow state used to filter related records before counting.
Possible values:
**approved** - Count only records in the approved workflow state.
One of: approved
approvedbooleanOptionalIndicates whether to restrict the count to approved records only.
Possible values:
**true** - Count only approved records.
**false** - Count only records that are not approved.
categorystringOptionalRepresents the category type used to filter related records before counting.
Possible values:
**link** - Count only link-type related records.
**files** - Count only file-attachment related records.
One of: link, files
convertedbooleanOptionalIndicates whether to restrict the count to converted records only. Applicable to the Leads module.
Possible values:
**true** - Count only converted records.
**false** - Count only records that have not been converted.
filtersModelRequired within parentExpand Get related records count — request body — body get related records count item params filters

Referenced models: Get related records count — request body — body get related records count item params filters

Get related records count — request body — body get related records count item params filters

FieldTypePresenceDescription and constraints
$objectRootRepresents the field-based filter criteria applied to related records before counting. Contains the field to evaluate, the comparison operator, and the value to compare against.
Additional keys: not allowed
comparatorstringRequired within parentRepresents the comparison operator used to filter related records before counting.
Possible values:
**equal** - Matches records where the specified field value equals the given value.
One of: equal
fieldModelRequired within parentExpand Get related records count — request body — body get related records count item params filters field
valuestringRequired within parentRepresents the value to compare the specified field against when filtering related records before counting.
Maximum length: 255
Minimum length: 1

Referenced models: Get related records count — request body — body get related records count item params filters field

Get related records count — request body — body get related records count item params filters field

FieldTypePresenceDescription and constraints
$objectRootRepresents the field to use when filtering related records before counting.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the field to filter on when counting related records.
Maximum length: 100
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$

Get related records count — request body — body get related records count item related list

FieldTypePresenceDescription and constraints
$objectRootRepresents a related list identified by its API name and unique ID. Used in both the request to specify the target related list and in the response to echo the queried related list.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the related list.
Maximum length: 100
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
idstringRequired within parentRepresents the unique ID of the related list. Use the [Get Related Records API](related_records.yaml#$.paths./{parentRecordModule}/{parentRecord}/{relatedList}.get) to get the ID of the related list in the key ID.
Format: int64
Maximum length: 20
Minimum length: 1
Pattern: ^[0-9]+$

Get related records count — response body — get related records count

FieldTypePresenceDescription and constraints
$objectRootRepresents the response returned when the count operation succeeds. Contains an array of count results, one entry for each related list requested.
Additional keys: not allowed
get_related_records_countarrayRequired within parentRepresents the array of count results, one entry for each related list requested.
Maximum items: 20
get_related_records_count[]ModelEach itemExpand Get related records count — response body — get related records count get related records count item

Referenced models: Get related records count — response body — get related records count get related records count item

Get related records count — response body — get related records count get related records count item

FieldTypePresenceDescription and constraints
$objectRootRepresents the count result for a specific related list, including the total number of matching records and the related list identifier.
Additional keys: not allowed
countJSONRequired within parent
count (anyOf 1)integerAlternativeRepresents the total number of related records matching the specified criteria.
Format: int32
Minimum: 0
count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
related_listModelRequired within parentExpand Get related records count — request body — body get related records count item related list

Referenced models: Get related records count — request body — body get related records count item related list

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error

FieldTypePresenceDescription and constraints
$objectRootPer-item MANDATORY_NOT_FOUND error entry inside the get_related_records_count array of a partial-success (HTTP 207) response. Indicates that a required field (such as related_list) was missing from this particular request item.
Additional keys: not allowed
codestringRequired within parentError code for missing mandatory field
Known values: MANDATORY_NOT_FOUND
detailsModelRequired within parentExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error details
messagestringRequired within parentHuman-readable error message describing the missing mandatory field
Known values: required field not found
statusstringRequired within parentThe status of this item, always 'error' for failed items
Known values: error

Referenced models: Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error details

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error details

FieldTypePresenceDescription and constraints
$objectRootError details with field information, used for field-level validation errors
Additional keys: not allowed
api_namestringRequired within parentThe API name of the field that caused the error
Maximum length: 100
json_pathstringRequired within parentJSON path indicating the location of the field in the request
Maximum length: 500

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error

FieldTypePresenceDescription and constraints
$objectRootPer-item error entry inside the get_related_records_count array of a partial-success (HTTP 207) response. Indicates that this particular related list count request failed while other items in the same array may have succeeded.
Additional keys: not allowed
codestringRequired within parentError code identifying the failure reason for this item
Known values: INVALID_DATA, EXPECTED_FIELD_MISSING, AMBIGUITY_DURING_PROCESSING, NOT_SUPPORTED
detailsJSONRequired within parentAdditional context about the per-item error (field info, expected fields, ambiguity info, or unsupported-filter info depending on the error code)
details (anyOf 1)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error details
details (anyOf 2)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected fields
details (anyOf 3)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details ambiguity due to
details (anyOf 4)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected data type: json type
details (anyOf 5)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details object
messagestringRequired within parentRepresents the error message describing the validation failure.
Maximum length: 500
statusstringRequired within parentRepresents the status of the response.
Possible values:
**error** - The request was unsuccessful.
Known values: error

Referenced models: Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details ambiguity due to, Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details object, Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected fields, Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error details, Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected data type: json type

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details ambiguity due to

FieldTypePresenceDescription and constraints
$objectRootError details containing information about ambiguous fields that caused processing conflict
Additional keys: not allowed
ambiguity_due_toarrayRequired within parentList of conflicting fields that caused the ambiguity (id and api_name)
Maximum items: 2
Minimum items: 2
ambiguity_due_to[]objectEach itemDetails of a field that contributed to the ambiguity
Additional keys: not allowed
ambiguity_due_to[].api_namestringRequired within parentThe API name of the ambiguous field
Maximum length: 100
ambiguity_due_to[].json_pathstringRequired within parentJSON path indicating the location of the ambiguous field in the request
Maximum length: 500

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected data type: json type

FieldTypePresenceDescription and constraints
$objectRootError details for unsupported filters, containing the expected data type and field information
Additional keys: not allowed
api_namestringRequired within parentThe API name of the field that is not supported
Maximum length: 100
expected_data_typestringRequired within parentThe expected data type for the field
Known values: json_type
json_pathstringRequired within parentJSON path indicating the location of the unsupported field in the request
Maximum length: 500

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details expected fields

FieldTypePresenceDescription and constraints
$objectRootError details containing list of expected fields that are missing
Additional keys: not allowed
expected_fieldsarrayRequired within parentList of field names that were expected but not provided
Maximum items: 20
Minimum items: 1
expected_fields[]objectEach itemDetails of an expected field
Additional keys: not allowed
expected_fields[].api_namestringRequired within parentAPI name of the expected field
Maximum length: 100
expected_fields[].json_pathstringRequired within parentJSON path indicating where the field was expected in the request
Maximum length: 500

Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error details object

FieldTypePresenceDescription and constraints
$objectRootEmpty error details object for errors that don't require additional context
Additional keys: not allowed

Get related records count — response body — value get related records count get related records count item — Partial Success Mandatory Not Found Response Item

FieldTypePresenceDescription and constraints
$JSONRootA single entry inside the get_related_records_count array of a partial-success MANDATORY_NOT_FOUND response. Each entry is independently either a successful count result or a per-item MANDATORY_NOT_FOUND error.
$ (anyOf 1)ModelAlternativeExpand Get related records count — response body — get related records count get related records count item
$ (anyOf 2)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error

Referenced models: Get related records count — response body — value / get_related_records_count / get_related_records_count / item / code: MANDATORY NOT FOUND, message: required field not found, status: error, Get related records count — response body — get related records count get related records count item

Get related records count — response body — value get related records count get related records count item — Partial Success Response Item

FieldTypePresenceDescription and constraints
$JSONRootA single entry inside the get_related_records_count array of a partial-success response. Each entry is independently either a successful count result or a per-item error.
$ (anyOf 1)ModelAlternativeExpand Get related records count — response body — get related records count get related records count item
$ (anyOf 2)ModelAlternativeExpand Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error

Referenced models: Get related records count — response body — value / get_related_records_count / get_related_records_count / item / status: error, Get related records count — response body — get related records count get related records count item

Get related records count — response body — value get related records count — Get Related Records Count Partial Success Response

FieldTypePresenceDescription and constraints
$objectRootMulti-Status (HTTP 207) response returned when a request containing multiple related list count items has mixed results - some items succeed with a count while others fail with a per-item error. Each entry in get_related_records_count corresponds positionally to a requested item and independently reports either success (count + related_list) or an error (status, code, message, details).
Additional keys: not allowed
get_related_records_countarrayRequired within parentArray of per-item results, one entry per requested related list. Each entry is either a RelatedRecordCountResult (success) or a PartialSuccessItemError (failure).
Maximum items: 20
Minimum items: 1
get_related_records_count[]ModelEach itemExpand Get related records count — response body — value get related records count get related records count item — Partial Success Response Item

Referenced models: Get related records count — response body — value get related records count get related records count item — Partial Success Response Item

Get related records count — response body — value get related records count — Partial Success Mandatory Not Found Response

FieldTypePresenceDescription and constraints
$objectRootMulti-Status (HTTP 207) response returned when a request contains multiple related list count items where some succeed and others fail because a required field (such as related_list) is missing. Each entry in get_related_records_count corresponds positionally to a requested item and independently reports either success (count + related_list) or a MANDATORY_NOT_FOUND error (status, code, message, details).
Additional keys: not allowed
get_related_records_countarrayRequired within parentArray of per-item results, one entry per requested related list. Each entry is either a RelatedRecordCountResult (success) or a PartialSuccessMandatoryNotFoundItemError (failure).
Maximum items: 20
Minimum items: 1
get_related_records_count[]ModelEach itemExpand Get related records count — response body — value get related records count get related records count item — Partial Success Mandatory Not Found Response Item

Referenced models: Get related records count — response body — value get related records count get related records count item — Partial Success Mandatory Not Found Response Item

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.