Class NSTicketMessage
The TicketMessage carrier is used for representing a service ticket message.
Constructors
NSTicketMessage()
Initializes a new instance of the NSTicketMessage class.
Declaration
NSTicketMessage Methods
GetAuthor()
Declaration
String GetAuthor() Examples
NSTicketMessage thing;
String author = thing.GetAuthor();
Returns
| Type | Description |
| String | A string representing the author of the message. Could be a user's name, or a persons email address. |
GetContactDepartment()
\n
Declaration
String GetContactDepartment() Examples
NSTicketMessage thing;
String contactDepartment = thing.GetContactDepartment();
Returns
| Type | Description |
| String | nDepartment. |
GetContactId()
Declaration
Integer GetContactId() Examples
NSTicketMessage thing;
Integer contactId = thing.GetContactId();
Returns
| Type | Description |
| Integer | Primary key. |
GetContactName()
Declaration
String GetContactName() Examples
NSTicketMessage thing;
String contactName = thing.GetContactName();
Returns
| Type | Description |
| String | Contact name. |
GetCreatedAt()
Declaration
DateTime GetCreatedAt() Examples
NSTicketMessage thing;
DateTime createdAt = thing.GetCreatedAt();
Returns
| Type | Description |
| DateTime | When the message was posted. |
GetEmailHeader()
Declaration
String GetEmailHeader() Examples
NSTicketMessage thing;
String emailHeader = thing.GetEmailHeader();
Returns
| Type | Description |
| String | The email header is saved in this field as raw text. |
GetImportant()
Declaration
Bool GetImportant() Examples
NSTicketMessage thing;
Bool important = thing.GetImportant();
Returns
| Type | Description |
| Bool | If this message is important or not. |
GetNumAttachments()
Declaration
Integer GetNumAttachments() Examples
NSTicketMessage thing;
Integer numAttachments = thing.GetNumAttachments();
Returns
| Type | Description |
| Integer | Number of attachments in the message. |
GetPersonFullName()
Declaration
String GetPersonFullName() Examples
NSTicketMessage thing;
String personFullName = thing.GetPersonFullName();
Returns
| Type | Description |
| String | Gets the persons full name (internal name used in clients for employees). |
GetPersonId()
Declaration
Integer GetPersonId() Examples
NSTicketMessage thing;
Integer personId = thing.GetPersonId();
Returns
| Type | Description |
| Integer | Primary key. |
GetSlevel()
Declaration
Integer GetSlevel() Examples
NSTicketMessage thing;
Integer slevel = thing.GetSlevel();
Returns
| Type | Description |
| Integer | The security-level of the message. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>. |
GetTicketMessageId()
Declaration
Integer GetTicketMessageId() Examples
NSTicketMessage thing;
Integer ticketMessageId = thing.GetTicketMessageId();
Returns
| Type | Description |
| Integer | The primary key (auto-incremented). |
SetAuthor(String)
Declaration
Void SetAuthor(String author) Examples
NSTicketMessage thing;
String author;
thing.SetAuthor(author);
Parameters
| Type | Name | Description |
| String | author | A string representing the author of the message. Could be a user's name, or a persons email address. |
Returns
| Type | Description |
| Void |
SetContactDepartment(String)
Declaration
Void SetContactDepartment(String contactDepartment) Examples
NSTicketMessage thing;
String contactDepartment;
thing.SetContactDepartment(contactDepartment);
Parameters
| Type | Name | Description |
| String | contactDepartment | Department. |
Returns
| Type | Description |
| Void |
SetContactId(Integer)
Declaration
Void SetContactId(Integer contactId) Examples
NSTicketMessage thing;
Integer contactId;
thing.SetContactId(contactId);
Parameters
| Type | Name | Description |
| Integer | contactId | Primary key. |
Returns
| Type | Description |
| Void |
SetContactName(String)
Declaration
Void SetContactName(String contactName) Examples
NSTicketMessage thing;
String contactName;
thing.SetContactName(contactName);
Parameters
| Type | Name | Description |
| String | contactName | Contact name. |
Returns
| Type | Description |
| Void |
SetCreatedAt(DateTime)
Declaration
Void SetCreatedAt(DateTime createdAt) Examples
NSTicketMessage thing;
DateTime createdAt;
thing.SetCreatedAt(createdAt);
Parameters
| Type | Name | Description |
| DateTime | createdAt | When the message was posted. |
Returns
| Type | Description |
| Void |
SetEmailHeader(String)
Declaration
Void SetEmailHeader(String emailHeader) Examples
NSTicketMessage thing;
String emailHeader;
thing.SetEmailHeader(emailHeader);
Parameters
| Type | Name | Description |
| String | emailHeader | The email header is saved in this field as raw text. |
Returns
| Type | Description |
| Void |
SetImportant(Bool)
Declaration
Void SetImportant(Bool important) Examples
NSTicketMessage thing;
Bool important;
thing.SetImportant(important);
Parameters
| Type | Name | Description |
| Bool | important | If this message is important or not. |
Returns
| Type | Description |
| Void |
SetNumAttachments(Integer)
Declaration
Void SetNumAttachments(Integer numAttachments) Examples
NSTicketMessage thing;
Integer numAttachments;
thing.SetNumAttachments(numAttachments);
Parameters
| Type | Name | Description |
| Integer | numAttachments | Number of attachments in the message. |
Returns
| Type | Description |
| Void |
SetPersonFullName(String)
Declaration
Void SetPersonFullName(String personFullName) Examples
NSTicketMessage thing;
String personFullName;
thing.SetPersonFullName(personFullName);
Parameters
| Type | Name | Description |
| String | personFullName | Gets the persons full name (internal name used in clients for employees). |
Returns
| Type | Description |
| Void |
SetPersonId(Integer)
Declaration
Void SetPersonId(Integer personId) Examples
NSTicketMessage thing;
Integer personId;
thing.SetPersonId(personId);
Parameters
| Type | Name | Description |
| Integer | personId | Primary key. |
Returns
| Type | Description |
| Void |
SetSlevel(Integer)
Declaration
Void SetSlevel(Integer slevel) Examples
NSTicketMessage thing;
Integer slevel;
thing.SetSlevel(slevel);
Parameters
| Type | Name | Description |
| Integer | slevel | The security-level of the message. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetTicketMessageId(Integer)
Declaration
Void SetTicketMessageId(Integer ticketMessageId) Examples
NSTicketMessage thing;
Integer ticketMessageId;
thing.SetTicketMessageId(ticketMessageId);
Parameters
| Type | Name | Description |
| Integer | ticketMessageId | The primary key (auto-incremented). |
Returns
| Type | Description |
| Void |