Skip to main content
The TicketMessage carrier is used for representing a service ticket message.

Constructors

NSTicketMessage()

Initializes a new instance of the NSTicketMessage class.

Methods

GetAuthor()

Returns: CRMScript.Global.String - A string representing the author of the message. Could be a user’s name, or a persons email address. Example:

GetContactDepartment()

\
Returns: CRMScript.Global.String - nDepartment. Example:

GetContactId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetContactName()

Returns: CRMScript.Global.String - Contact name. Example:

GetCreatedAt()

Returns: CRMScript.Global.DateTime - When the message was posted. Example:

GetEmailHeader()

Returns: CRMScript.Global.String - The email header is saved in this field as raw text. Example:

GetImportant()

Returns: CRMScript.Global.Bool - If this message is important or not. Example:

GetNumAttachments()

Returns: CRMScript.Global.Integer - Number of attachments in the message. Example:

GetPersonFullName()

Returns: CRMScript.Global.String - Gets the persons full name (internal name used in clients for employees). Example:

GetPersonId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetSlevel()

Returns: CRMScript.Global.Integer - The security-level of the message. See <xref href=“CRMScript.NetServer.TicketSecurityLevel” data-throw-if-not-resolved=“false”></xref>. Example:

GetTicketMessageId()

Returns: CRMScript.Global.Integer - The primary key (auto-incremented). Example:

SetAuthor(String)

Returns: CRMScript.Global.Void Example:

SetContactDepartment(String)

Returns: CRMScript.Global.Void Example:

SetContactId(Integer)

Returns: CRMScript.Global.Void Example:

SetContactName(String)

Returns: CRMScript.Global.Void Example:

SetCreatedAt(DateTime)

Returns: CRMScript.Global.Void Example:

SetEmailHeader(String)

Returns: CRMScript.Global.Void Example:

SetImportant(Bool)

Returns: CRMScript.Global.Void Example:

SetNumAttachments(Integer)

Returns: CRMScript.Global.Void Example:

SetPersonFullName(String)

Returns: CRMScript.Global.Void Example:

SetPersonId(Integer)

Returns: CRMScript.Global.Void Example:

SetSlevel(Integer)

Returns: CRMScript.Global.Void Example:

SetTicketMessageId(Integer)

Returns: CRMScript.Global.Void Example: