---
schema_version: "1"
id: 85a184df170152491bc6e8162d36eb38bf24f6e93754df2d3a217bb1fb41fcb7
title: Folder Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_folderFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_folderFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a8702681c7d153982e7f6be93685d308366f9012d2bb78ac616d90a2efad992a
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Folder Functions

These functions allow you to access and control folders within your Marketing Cloud Engagement account.

## Load

In your server-side JavaScript code, first load the core library using this syntax:

```
Platform.Load("core","1");
```

## Initialization

To interact with a folder via server-side JavaScript, you must first initialize the object. The code below initializes a folder with the external key of myFolder.

```
var myFolder = Folder.Init("myFolder");
```

Not all Folder objects ll include an external key. You can initialize a Folder by assigning it an ID number:

```
var myIDFolder = Folder.Init();
myIDFolder.SetID(12345);
```

Once you initialize the folder, use the ID number to identify the folder in place of the external key for all applicable functions.
