getTemplates()
Overview
public query function getTemplates(
required boolean custom
, string recipientType = ""
, boolean allowDrafts = true
)
Returns a query of templates matching the provided filters
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| custom | boolean | Yes | Whether or not the templates should be custom (if not, they are system) |
| recipientType | string | No (default="") | The recipient type of the templates |
| allowDrafts | boolean | No (default=true) | Whether or not to get draft templates |