Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save katydorjee/28ae8b0df6a093e18dccb303fae57da9 to your computer and use it in GitHub Desktop.
Save katydorjee/28ae8b0df6a093e18dccb303fae57da9 to your computer and use it in GitHub Desktop.
Create folder in email studio Data Extension using SSJS
<script runat=server>
Platform.Load("core","1");
var newFolder = {
"Name" : "Name_of_the_folder",
"CustomerKey" : Platform.Function.GUID(),
"Description" : "Description_of_the_folder",
"ContentType" : "dataextension",
"IsActive" : "true",
"IsEditable" : "true",
"AllowChildren" : "false",
"ParentFolderID" : 100
};
var status = Folder.Add(newFolder);
</script>
@katydorjee
Copy link
Author

*Replace the parent folder id value.

@katydorjee
Copy link
Author

katydorjee commented Jun 20, 2020

You may be interested in

Create Data Extension Using SSJS WSProxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment