saveTemplate()
Overview
public string function saveTemplate(
required struct template
, string id = ""
, boolean isDraft = false
, boolean forcePublication = false
)
Inserts or updates the given email template
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| template | struct | Yes | Struct containing fields to save |
| id | string | No (default="") | Optional ID of the template to save (if empty, assumes its a new template) |
| isDraft | boolean | No (default=false) | |
| forcePublication | boolean | No (default=false) |