Class NSTicketStatusEntity
Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it.
Constructors
NSTicketStatusEntity()
Initializes a new instance of the NSTicketStatusEntity class.
Declaration
NSTicketStatusEntity Methods
GetName()
Declaration
String GetName() Examples
NSTicketStatusEntity thing;
String name = thing.GetName();
Returns
| Type | Description |
| String | Name of user defined ticket status. |
GetNoEmailReopen()
Declaration
Bool GetNoEmailReopen() Examples
NSTicketStatusEntity thing;
Bool noEmailReopen = thing.GetNoEmailReopen();
Returns
| Type | Description |
| Bool | Whether inbound emails can reopen requests with this status or not. |
GetStatus()
Declaration
Integer GetStatus() Examples
NSTicketStatusEntity thing;
Integer status = thing.GetStatus();
Returns
| Type | Description |
| Integer | The classic ticket status (active/closed/postponed/deleted). See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>. |
GetTicketStatusId()
Declaration
Integer GetTicketStatusId() Examples
NSTicketStatusEntity thing;
Integer ticketStatusId = thing.GetTicketStatusId();
Returns
| Type | Description |
| Integer | The primary key (auto-incremented). |
GetTimeCounter()
Declaration
Integer GetTimeCounter() Examples
NSTicketStatusEntity thing;
Integer timeCounter = thing.GetTimeCounter();
Returns
| Type | Description |
| Integer | Which field in ticket we count time spent on (queue, internal, external). See <xref href="CRMScript.NetServer.TicketStatusTimeCounter" data-throw-if-not-resolved="false"></xref>. |
SetName(String)
Declaration
Void SetName(String name) Examples
NSTicketStatusEntity thing;
String name;
thing.SetName(name);
Parameters
| Type | Name | Description |
| String | name | Name of user defined ticket status. |
Returns
| Type | Description |
| Void |
SetNoEmailReopen(Bool)
Declaration
Void SetNoEmailReopen(Bool noEmailReopen) Examples
NSTicketStatusEntity thing;
Bool noEmailReopen;
thing.SetNoEmailReopen(noEmailReopen);
Parameters
| Type | Name | Description |
| Bool | noEmailReopen | Whether inbound emails can reopen requests with this status or not. |
Returns
| Type | Description |
| Void |
SetStatus(Integer)
Declaration
Void SetStatus(Integer status) Examples
NSTicketStatusEntity thing;
Integer status;
thing.SetStatus(status);
Parameters
| Type | Name | Description |
| Integer | status | The classic ticket status (active/closed/postponed/deleted). See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetTicketStatusId(Integer)
Declaration
Void SetTicketStatusId(Integer ticketStatusId) Examples
NSTicketStatusEntity thing;
Integer ticketStatusId;
thing.SetTicketStatusId(ticketStatusId);
Parameters
| Type | Name | Description |
| Integer | ticketStatusId | The primary key (auto-incremented). |
Returns
| Type | Description |
| Void |
SetTimeCounter(Integer)
Declaration
Void SetTimeCounter(Integer timeCounter) Examples
NSTicketStatusEntity thing;
Integer timeCounter;
thing.SetTimeCounter(timeCounter);
Parameters
| Type | Name | Description |
| Integer | timeCounter | Which field in ticket we count time spent on (queue, internal, external). See <xref href="CRMScript.NetServer.TicketStatusTimeCounter" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |