AMPscript
Add
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Updates a template and returns a status
Update(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Attributes regarding template to change |
This sample code updates the Name attribute of the template to the specified value:
1var myTemplate = Template.Init('myTemplateCK');
2var status = temp.Update({ "TemplateName" : "Edited Template" });