Folder Functions

These functions allow you to access and control folders within your Marketing Cloud Engagement account.

In your server-side JavaScript code, first load the core library using this syntax:

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.

Not all Folder objects ll include an external key. You can initialize a Folder by assigning it an ID number:

Once you initialize the folder, use the ID number to identify the folder in place of the external key for all applicable functions.