---
title: getOverallRecipientCount
slug: campaign/docs/getoverallrecipientcount
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

Consists of [getSentRecipientCount](docId\:N5Et_zXfK4nso9-Rwy9-C) and [getFailedRecipientCount](docId\:GoSiD6ZUz4l-YH1hFlXw7). See also: [getOverallRecipientCount](docId\:WE2XIsyl2H305WcIvyzT9).

**Type**: int

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

Number of recipients to whom the mailing was sent or tried to send

Returns 0 if a mailing has not been started yet.

**Code structure**

```javascript
int getOverallRecipientCount(String sessionId, long mailingId)
```
