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

NameTypeRequiredDescription
templatestructYesStruct containing fields to save
idstringNo (default="")Optional ID of the template to save (if empty, assumes its a new template)
isDraftbooleanNo (default=false)
forcePublicationbooleanNo (default=false)