---
title: getAssignedFolder
slug: campaign/docs/getassignedfolder
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: long

**Parameters**

| Name              | Type   | Value                             |
| ----------------- | ------ | --------------------------------- |
| sessionId         | String | ID of the current session         |
| mailingOrFilterId | long   | ID of the mailing or target group |

**Return values**

ID of the assigned folder

**Code structure**

```javascript
long getAssignedFolder(String sessionId, long mailingOrFilterId)
```
