---
title: getAllRecipientResponseCounts2
slug: campaign/docs/getallrecipientresponsecounts2
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

**Type**: int\[ ]

**Parameters**

| Name         | Type       | Value                                                    |
| ------------ | ---------- | -------------------------------------------------------- |
| sessionId    | String     | ID of the session                                        |
| category     | String     | See [Response categories](docId\:lEdZccZZ6EwDmOJC0SBhi). |
| recipientIds | String\[ ] | IDs of the recipients                                    |
| mailingId    | long       | ID of the mailing                                        |

**Return values**

For each recipient: Number of responses of the given type for the recipient

**Code structure**

```javascript
int[] getAllRecipientResponseCounts2(String sessionId, String category, String[] recipientIds, long mailingId)
```
