Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Get a Batch of Related List Record Counts

Returns the record count for a batch of related lists.
Resource
1/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.
1/services/data/v67.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