AMPscript
Add
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Adds a new template to your account and returns the status of the operation
Add(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | JSON object representing properties of the new template |
This sample code adds a template to your account:
1var myTemp = {
2 "CustomerKey":"test_template",
3 "TemplateName":"SSJS Test Template",
4 "LayoutHTML":"this is some HTML"
5};
6
7var status = Template.Add(myTemp);