AMPscript
Add
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Adds a new folder to your account as a child to a previously existing folder and returns the status
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | JSON object representing new folder properties |
This sample code adds a folder to your account:
1var newFolder = {
2 "Name" : "Test Add Folder",
3 "CustomerKey" : "test_folder_key",
4 "Description" : "Test added",
5 "ContentType" : "email",
6 "IsActive" : "true",
7 "IsEditable" : "true",
8 "AllowChildren" : "false",
9 "ParentFolderID" : 123456
10};
11var status = Folder.Add(newFolder);