getTemplate()

Overview

public struct function getTemplate(
      required string  id               
    ,          boolean allowDrafts       = false
    ,          numeric version           = 0
    ,          boolean fromVersionTable 
    ,          array   extraSelectFields
)

Returns the saved template from the database

Arguments

NameTypeRequiredDescription
idstringYesID of the template to get
allowDraftsbooleanNo (default=false)Whether or not to allow draft versions of the template
versionnumericNo (default=0)Specific version from version history to get
fromVersionTablebooleanNo
extraSelectFieldsarrayNo