Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

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.