Created
March 27, 2017 22:03
-
-
Save angrycider/b5369270b48eea2b6d225aa75797c779 to your computer and use it in GitHub Desktop.
10. Create Folder
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
// //Create Folder | |
var parentFolderID = '100504'; //Hover over or Inspect folder in the UI and look at CID querystring parameter | |
var co = { | |
"Name": "201703", | |
"Description": "201703", | |
"ParentFolder": {"ID":parentFolderID,"IDSpecified":true}, //Omit this to create at root | |
"ContentType":"email" | |
}; | |
/* | |
The ContentType is required. Few possible values: | |
content | |
dataextension | |
group | |
image | |
job | |
list | |
publication | |
suppression_list | |
survey | |
template | |
triggered_send | |
userinitiatedsends | |
*/ | |
SoapClient.create('DataFolder',co, null, function(err, response){ | |
if(err){ | |
console.log(err); | |
} | |
else{ | |
console.log(response.body.Results); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment