getTemplates()

Overview

public query function getTemplates(
      required boolean custom       
    ,          string  recipientType = ""
    ,          boolean allowDrafts   = true
)

Returns a query of templates matching the provided filters

Arguments

NameTypeRequiredDescription
custombooleanYesWhether or not the templates should be custom (if not, they are system)
recipientTypestringNo (default="")The recipient type of the templates
allowDraftsbooleanNo (default=true)Whether or not to get draft templates