Skip to main content
Represents a reply template.

Constructors

ReplyTemplate()

Initializes a new instance of the ReplyTemplate class.

Methods

getAttachments(Integer)

Gets all attachment IDs belonging to a reply template.
Returns: CRMScript.Global.Integer[] - Attachment IDs belonging to a reply template.

getHtmlBody(Integer)

Returns the reply template HTML body, in the language given by language. If language does not exists it will return default language.
Returns: CRMScript.Global.String - The reply template HTML body, in the language given.
Supported languages depend on configuration.

getName()

Returns the name of the reply template.
Returns: CRMScript.Global.String - The name of the reply template.

getPlainBody(Integer)

Returns the reply template plain text body in the given language (if available). If language does not exists, it will return default language.
Returns: CRMScript.Global.String - The reply template plain text body in the given language.

getSmsBody(Integer)

Returns the reply template SMS body, in the language given by language ID. If language does not exists it will return default language.
Returns: CRMScript.Global.String - The reply template SMS body in the language given.

getSubject(Integer)

Returns the reply template subject, in the language given by language. If language does not exists it will return default language.
Returns: CRMScript.Global.String - The reply template plain-text subject in the language given.
Supported languages depend on configuration.

load(Integer)

This function loads a reply template to the object.
Returns: CRMScript.Global.Bool - True if reply template with given ID loaded successfully; otherwise, false.