Created
June 16, 2020 12:57
-
-
Save katydorjee/28ae8b0df6a093e18dccb303fae57da9 to your computer and use it in GitHub Desktop.
Create folder in email studio Data Extension using SSJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
You may be interested in
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
*Replace the parent folder id value.