---
schema_version: "1"
id: ae009d5419d1b3f125ec3c1e0b4a14e692e8b02214b78a9422768a6cb585cd3b
title: Get a Batch of Related List Record Counts
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_resources_related_list_count_batch.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_related_list_count_batch.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 91901c563ab32814947b216a7b0df61afb6050cc280cc9144b67a3bb98465a48
description: Returns the record count for a batch of related lists.
---
# Get a Batch of Related List Record Counts

Returns the record count for a batch of related lists.

Resource

/ui-api/related-list-count/batch/${parentRecordId}/${relatedListIds}

- parentRecordId—The ID of the record you want to get related lists for.
- relatedListIds—Comma-separated IDs of supported related lists for that object.

Available Version

50.0

HTTP Method

GET

Example

To get the number of records in the Contracts related list for the account 001RM000003UNu6YAG, make this request.

/services/data/v68.0/ui-api/related-list-count/batch/001RM000003UNu6YAG/Contracts,WorkOrders

Request Parameters

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| maxCount | Integer | The maximum number of records to return. The default value is 20. | Optional | 50.0 |

Response Body

[Simplified Batch Results](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_batch_results_simplified.htm "The simplified results from a request to a batch resource. Results include information for each subrequest in the batch.")