Class NSTicket
Constructors
NSTicket()
Initializes a new instance of the NSTicket class.
Declaration
NSTicket Methods
GetActivate()
Declaration
DateTime GetActivate() Examples
NSTicket thing;
DateTime activate = thing.GetActivate();
Returns
| Type | Description |
| DateTime | When the ticket should be activated, if it is postponed. |
GetAlertLevel()
Declaration
Integer GetAlertLevel() Examples
NSTicket thing;
Integer alertLevel = thing.GetAlertLevel();
Returns
| Type | Description |
| Integer | The alert level for the ticket. Matches the level value of the ticket_alert table. |
GetAlertTimeout()
Declaration
DateTime GetAlertTimeout() Examples
NSTicket thing;
DateTime alertTimeout = thing.GetAlertTimeout();
Returns
| Type | Description |
| DateTime | The datetime for when the ticket should jump to the next alert_level. |
GetAuthor()
Declaration
String GetAuthor() Examples
NSTicket thing;
String author = thing.GetAuthor();
Returns
| Type | Description |
| String | A string representing the author of the ticket (same as author of first message). |
GetBaseStatus()
Declaration
Integer GetBaseStatus() Examples
NSTicket thing;
Integer baseStatus = thing.GetBaseStatus();
Returns
| Type | Description |
| Integer | The status of the ticket. See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>. |
GetCategory()
Declaration
Integer GetCategory() Examples
NSTicket thing;
Integer category = thing.GetCategory();
Returns
| Type | Description |
| Integer | The ID of the category a ticket is in. |
GetCategoryFullname()
Declaration
String GetCategoryFullname() Examples
NSTicket thing;
String categoryFullname = thing.GetCategoryFullname();
Returns
| Type | Description |
| String | The fullname (compiled from parents' names) for this category. E.g. 'norway/product A/support'. |
GetCategoryName()
Declaration
String GetCategoryName() Examples
NSTicket thing;
String categoryName = thing.GetCategoryName();
Returns
| Type | Description |
| String | The (short) name of this category. E.g. 'support'. |
GetClosedAt()
Declaration
DateTime GetClosedAt() Examples
NSTicket thing;
DateTime closedAt = thing.GetClosedAt();
Returns
| Type | Description |
| DateTime | When the ticket was closed. |
GetConnectId()
Declaration
Integer GetConnectId() Examples
NSTicket thing;
Integer connectId = thing.GetConnectId();
Returns
| Type | Description |
| Integer | If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket. |
GetCreatedAt()
Declaration
DateTime GetCreatedAt() Examples
NSTicket thing;
DateTime createdAt = thing.GetCreatedAt();
Returns
| Type | Description |
| DateTime | When the ticket was created. |
GetCreatedBy()
Declaration
Integer GetCreatedBy() Examples
NSTicket thing;
Integer createdBy = thing.GetCreatedBy();
Returns
| Type | Description |
| Integer | The ID of the user who created the ticket. 1 (system user) if the ticket was created externally. |
GetCreatedByName()
Declaration
String GetCreatedByName() Examples
NSTicket thing;
String createdByName = thing.GetCreatedByName();
Returns
| Type | Description |
| String | Initials, also login name, possibly database user name. |
GetCustId()
Declaration
Integer GetCustId() Examples
NSTicket thing;
Integer custId = thing.GetCustId();
Returns
| Type | Description |
| Integer | The reference to the customer. NULL or -1 if ticket is not connected to customer. |
GetDeadline()
Declaration
DateTime GetDeadline() Examples
NSTicket thing;
DateTime deadline = thing.GetDeadline();
Returns
| Type | Description |
| DateTime | Deadline for ticket. |
GetFirstReadByUser()
Declaration
DateTime GetFirstReadByUser() Examples
NSTicket thing;
DateTime firstReadByUser = thing.GetFirstReadByUser();
Returns
| Type | Description |
| DateTime | The datetime for when the ticket first was read by a user. |
GetFromAddress()
Declaration
String GetFromAddress() Examples
NSTicket thing;
String fromAddress = thing.GetFromAddress();
Returns
| Type | Description |
| String | The from-address used when this ticket got created, e.g. by email. |
GetHasAttachment()
Declaration
Bool GetHasAttachment() Examples
NSTicket thing;
Bool hasAttachment = thing.GetHasAttachment();
Returns
| Type | Description |
| Bool | Bool indicating if this ticket has one or more attachments. |
GetLastChanged()
Declaration
DateTime GetLastChanged() Examples
NSTicket thing;
DateTime lastChanged = thing.GetLastChanged();
Returns
| Type | Description |
| DateTime | The last time the ticket was modified. |
GetNumMessages()
Declaration
Integer GetNumMessages() Examples
NSTicket thing;
Integer numMessages = thing.GetNumMessages();
Returns
| Type | Description |
| Integer | The total number of messages for this request. |
GetNumReplies()
Declaration
Integer GetNumReplies() Examples
NSTicket thing;
Integer numReplies = thing.GetNumReplies();
Returns
| Type | Description |
| Integer | The number of replies (messages) to the customer for this request. |
GetOrigin()
Declaration
Integer GetOrigin() Examples
NSTicket thing;
Integer origin = thing.GetOrigin();
Returns
| Type | Description |
| Integer | What is the origin of this ticket? See <xref href="CRMScript.NetServer.TicketOrigin" data-throw-if-not-resolved="false"></xref>. |
GetOwnedBy()
Declaration
Integer GetOwnedBy() Examples
NSTicket thing;
Integer ownedBy = thing.GetOwnedBy();
Returns
| Type | Description |
| Integer | The ID of the user who owns the ticket. 1 (system user) if the ticket is unassigned. |
GetOwnedByName()
Declaration
String GetOwnedByName() Examples
NSTicket thing;
String ownedByName = thing.GetOwnedByName();
Returns
| Type | Description |
| String | Initials, also login name, possibly database user name. |
GetPersonFirstname()
Declaration
String GetPersonFirstname() Examples
NSTicket thing;
String personFirstname = thing.GetPersonFirstname();
Returns
| Type | Description |
| String | First name. |
GetPersonFullname()
Declaration
String GetPersonFullname() Examples
NSTicket thing;
String personFullname = thing.GetPersonFullname();
Returns
| Type | Description |
| String | Gets the full name for the primary person (customer). |
GetPersonLastname()
Declaration
String GetPersonLastname() Examples
NSTicket thing;
String personLastname = thing.GetPersonLastname();
Returns
| Type | Description |
| String | Last name. |
GetPersonMiddleName()
Declaration
String GetPersonMiddleName() Examples
NSTicket thing;
String personMiddleName = thing.GetPersonMiddleName();
Returns
| Type | Description |
| String | Middle name or 'van' etc. |
GetPriority()
Declaration
Integer GetPriority() Examples
NSTicket thing;
Integer priority = thing.GetPriority();
Returns
| Type | Description |
| Integer | The reference to the ticket_priority table. |
GetPriorityName()
Declaration
String GetPriorityName() Examples
NSTicket thing;
String priorityName = thing.GetPriorityName();
Returns
| Type | Description |
| String | The name of the priority. |
GetReadByCustomer()
Declaration
DateTime GetReadByCustomer() Examples
NSTicket thing;
DateTime readByCustomer = thing.GetReadByCustomer();
Returns
| Type | Description |
| DateTime | The datetime for when the ticket was read by the customer. |
GetReadByOwner()
Declaration
DateTime GetReadByOwner() Examples
NSTicket thing;
DateTime readByOwner = thing.GetReadByOwner();
Returns
| Type | Description |
| DateTime | The datetime for when the ticket last was read by the owner. |
GetReadStatus()
Declaration
Integer GetReadStatus() Examples
NSTicket thing;
Integer readStatus = thing.GetReadStatus();
Returns
| Type | Description |
| Integer | Whether the owner has read the ticket or not (red, yellow, green). See <xref href="CRMScript.NetServer.TicketReadStatus" data-throw-if-not-resolved="false"></xref>. |
GetRealTimeSpentExternally()
Declaration
Integer GetRealTimeSpentExternally() Examples
NSTicket thing;
Integer realTimeSpentExternally = thing.GetRealTimeSpentExternally();
Returns
| Type | Description |
| Integer | The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state. |
GetRealTimeSpentInternally()
Declaration
Integer GetRealTimeSpentInternally() Examples
NSTicket thing;
Integer realTimeSpentInternally = thing.GetRealTimeSpentInternally();
Returns
| Type | Description |
| Integer | The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state. |
GetRealTimeSpentQueue()
Declaration
Integer GetRealTimeSpentQueue() Examples
NSTicket thing;
Integer realTimeSpentQueue = thing.GetRealTimeSpentQueue();
Returns
| Type | Description |
| Integer | The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state. |
GetRealTimeToClose()
Declaration
Integer GetRealTimeToClose() Examples
NSTicket thing;
Integer realTimeToClose = thing.GetRealTimeToClose();
Returns
| Type | Description |
| Integer | Same as time_to_close, but not calculated based on priority. |
GetRealTimeToReply()
Declaration
Integer GetRealTimeToReply() Examples
NSTicket thing;
Integer realTimeToReply = thing.GetRealTimeToReply();
Returns
| Type | Description |
| Integer | Same as time_to_reply, but not calculated based on priority. |
GetRepliedAt()
Declaration
DateTime GetRepliedAt() Examples
NSTicket thing;
DateTime repliedAt = thing.GetRepliedAt();
Returns
| Type | Description |
| DateTime | The datetime for when the ticket was replied to. I.e. the first external message added to the ticket. |
GetSlevel()
Declaration
Integer GetSlevel() Examples
NSTicket thing;
Integer slevel = thing.GetSlevel();
Returns
| Type | Description |
| Integer | The security-level of the ticket. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>. |
GetTicketId()
Declaration
Integer GetTicketId() Examples
NSTicket thing;
Integer ticketId = thing.GetTicketId();
Returns
| Type | Description |
| Integer | The primary key (auto-incremented). |
GetTicketStatus()
Declaration
Integer GetTicketStatus() Examples
NSTicket thing;
Integer ticketStatus = thing.GetTicketStatus();
Returns
| Type | Description |
| Integer | User-defined ticket status. |
GetTicketStatusDisplayValue()
Gets the display name of the ticket status.
Declaration
String GetTicketStatusDisplayValue() Examples
NSTicket thing;
String ticketStatusDisplayValue = thing.GetTicketStatusDisplayValue();
Returns
| Type | Description |
| String |
GetTimeSpentExternally()
Declaration
Integer GetTimeSpentExternally() Examples
NSTicket thing;
Integer timeSpentExternally = thing.GetTimeSpentExternally();
Returns
| Type | Description |
| Integer | The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state. |
GetTimeSpentInternally()
Declaration
Integer GetTimeSpentInternally() Examples
NSTicket thing;
Integer timeSpentInternally = thing.GetTimeSpentInternally();
Returns
| Type | Description |
| Integer | The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state. |
GetTimeSpentQueue()
Declaration
Integer GetTimeSpentQueue() Examples
NSTicket thing;
Integer timeSpentQueue = thing.GetTimeSpentQueue();
Returns
| Type | Description |
| Integer | The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state. |
GetTimeToClose()
Declaration
Integer GetTimeToClose() Examples
NSTicket thing;
Integer timeToClose = thing.GetTimeToClose();
Returns
| Type | Description |
| Integer | The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's time frame. |
GetTimeToReply()
Declaration
Integer GetTimeToReply() Examples
NSTicket thing;
Integer timeToReply = thing.GetTimeToReply();
Returns
| Type | Description |
| Integer | The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's time frame. |
GetTitle()
Declaration
String GetTitle() Examples
NSTicket thing;
String title = thing.GetTitle();
Returns
| Type | Description |
| String | The title of the ticket. |
SetActivate(DateTime)
Declaration
Void SetActivate(DateTime activate) Examples
NSTicket thing;
DateTime activate;
thing.SetActivate(activate);
Parameters
| Type | Name | Description |
| DateTime | activate | When the ticket should be activated, if it is postponed. |
Returns
| Type | Description |
| Void |
SetAlertLevel(Integer)
Declaration
Void SetAlertLevel(Integer alertLevel) Examples
NSTicket thing;
Integer alertLevel;
thing.SetAlertLevel(alertLevel);
Parameters
| Type | Name | Description |
| Integer | alertLevel | The alert level for the ticket. Matches the level value of the ticket_alert table. |
Returns
| Type | Description |
| Void |
SetAlertTimeout(DateTime)
Declaration
Void SetAlertTimeout(DateTime alertTimeout) Examples
NSTicket thing;
DateTime alertTimeout;
thing.SetAlertTimeout(alertTimeout);
Parameters
| Type | Name | Description |
| DateTime | alertTimeout | The datetime for when the ticket should jump to the next alert_level. |
Returns
| Type | Description |
| Void |
SetAuthor(String)
Declaration
Void SetAuthor(String author) Examples
NSTicket thing;
String author;
thing.SetAuthor(author);
Parameters
| Type | Name | Description |
| String | author | A string representing the author of the ticket (same as author of first message). |
Returns
| Type | Description |
| Void |
SetBaseStatus(Integer)
Declaration
Void SetBaseStatus(Integer baseStatus) Examples
NSTicket thing;
Integer baseStatus;
thing.SetBaseStatus(baseStatus);
Parameters
| Type | Name | Description |
| Integer | baseStatus | The status of the ticket. See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetCategory(Integer)
Declaration
Void SetCategory(Integer category) Examples
NSTicket thing;
Integer category;
thing.SetCategory(category);
Parameters
| Type | Name | Description |
| Integer | category | The ID of the category a ticket is in. |
Returns
| Type | Description |
| Void |
SetCategoryFullname(String)
Declaration
Void SetCategoryFullname(String categoryFullname) Examples
NSTicket thing;
String categoryFullname;
thing.SetCategoryFullname(categoryFullname);
Parameters
| Type | Name | Description |
| String | categoryFullname | The fullname (compiled from parents' names) for this category. E.g. 'norway/product A/support'. |
Returns
| Type | Description |
| Void |
SetCategoryName(String)
Declaration
Void SetCategoryName(String categoryName) Examples
NSTicket thing;
String categoryName;
thing.SetCategoryName(categoryName);
Parameters
| Type | Name | Description |
| String | categoryName | The (short) name of this category. E.g. 'support'. |
Returns
| Type | Description |
| Void |
SetClosedAt(DateTime)
Declaration
Void SetClosedAt(DateTime closedAt) Examples
NSTicket thing;
DateTime closedAt;
thing.SetClosedAt(closedAt);
Parameters
| Type | Name | Description |
| DateTime | closedAt | When the ticket was closed. |
Returns
| Type | Description |
| Void |
SetConnectId(Integer)
Declaration
Void SetConnectId(Integer connectId) Examples
NSTicket thing;
Integer connectId;
thing.SetConnectId(connectId);
Parameters
| Type | Name | Description |
| Integer | connectId | If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket. |
Returns
| Type | Description |
| Void |
SetCreatedAt(DateTime)
Declaration
Void SetCreatedAt(DateTime createdAt) Examples
NSTicket thing;
DateTime createdAt;
thing.SetCreatedAt(createdAt);
Parameters
| Type | Name | Description |
| DateTime | createdAt | When the ticket was created. |
Returns
| Type | Description |
| Void |
SetCreatedBy(Integer)
Declaration
Void SetCreatedBy(Integer createdBy) Examples
NSTicket thing;
Integer createdBy;
thing.SetCreatedBy(createdBy);
Parameters
| Type | Name | Description |
| Integer | createdBy | The ID of the user who created the ticket. 1 (system user) if the ticket was created externally. |
Returns
| Type | Description |
| Void |
SetCreatedByName(String)
Declaration
Void SetCreatedByName(String createdByName) Examples
NSTicket thing;
String createdByName;
thing.SetCreatedByName(createdByName);
Parameters
| Type | Name | Description |
| String | createdByName | Initials, also login name, possibly database user name. |
Returns
| Type | Description |
| Void |
SetCustId(Integer)
Declaration
Void SetCustId(Integer custId) Examples
NSTicket thing;
Integer custId;
thing.SetCustId(custId);
Parameters
| Type | Name | Description |
| Integer | custId | The reference to the customer. NULL or -1 if ticket is not connected to customer. |
Returns
| Type | Description |
| Void |
SetDeadline(DateTime)
Declaration
Void SetDeadline(DateTime deadline) Examples
NSTicket thing;
DateTime deadline;
thing.SetDeadline(deadline);
Parameters
| Type | Name | Description |
| DateTime | deadline | Deadline for ticket. |
Returns
| Type | Description |
| Void |
SetFirstReadByUser(DateTime)
Declaration
Void SetFirstReadByUser(DateTime firstReadByUser) Examples
NSTicket thing;
DateTime firstReadByUser;
thing.SetFirstReadByUser(firstReadByUser);
Parameters
| Type | Name | Description |
| DateTime | firstReadByUser | The datetime for when the ticket first was read by a user. |
Returns
| Type | Description |
| Void |
SetFromAddress(String)
Declaration
Void SetFromAddress(String fromAddress) Examples
NSTicket thing;
String fromAddress;
thing.SetFromAddress(fromAddress);
Parameters
| Type | Name | Description |
| String | fromAddress | The from-address used when this ticket got created, e.g. by email. |
Returns
| Type | Description |
| Void |
SetHasAttachment(Bool)
Declaration
Void SetHasAttachment(Bool hasAttachment) Examples
NSTicket thing;
Bool hasAttachment;
thing.SetHasAttachment(hasAttachment);
Parameters
| Type | Name | Description |
| Bool | hasAttachment | Bool indicating if this ticket has one or more attachments. |
Returns
| Type | Description |
| Void |
SetLastChanged(DateTime)
Declaration
Void SetLastChanged(DateTime lastChanged) Examples
NSTicket thing;
DateTime lastChanged;
thing.SetLastChanged(lastChanged);
Parameters
| Type | Name | Description |
| DateTime | lastChanged | The last time the ticket was modified. |
Returns
| Type | Description |
| Void |
SetNumMessages(Integer)
Declaration
Void SetNumMessages(Integer numMessages) Examples
NSTicket thing;
Integer numMessages;
thing.SetNumMessages(numMessages);
Parameters
| Type | Name | Description |
| Integer | numMessages | The total number of messages for this request. |
Returns
| Type | Description |
| Void |
SetNumReplies(Integer)
Declaration
Void SetNumReplies(Integer numReplies) Examples
NSTicket thing;
Integer numReplies;
thing.SetNumReplies(numReplies);
Parameters
| Type | Name | Description |
| Integer | numReplies | The number of replies (messages) to the customer for this request. |
Returns
| Type | Description |
| Void |
SetOrigin(Integer)
Declaration
Void SetOrigin(Integer origin) Examples
NSTicket thing;
Integer origin;
thing.SetOrigin(origin);
Parameters
| Type | Name | Description |
| Integer | origin | What is the origin of this ticket? See <xref href="CRMScript.NetServer.TicketOrigin" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetOwnedBy(Integer)
Declaration
Void SetOwnedBy(Integer ownedBy) Examples
NSTicket thing;
Integer ownedBy;
thing.SetOwnedBy(ownedBy);
Parameters
| Type | Name | Description |
| Integer | ownedBy | The ID of the user who owns the ticket. 1 (system user) if the ticket is unassigned. |
Returns
| Type | Description |
| Void |
SetOwnedByName(String)
Declaration
Void SetOwnedByName(String ownedByName) Examples
NSTicket thing;
String ownedByName;
thing.SetOwnedByName(ownedByName);
Parameters
| Type | Name | Description |
| String | ownedByName | Initials, also login name, possibly database user name. |
Returns
| Type | Description |
| Void |
SetPersonFirstname(String)
Declaration
Void SetPersonFirstname(String personFirstname) Examples
NSTicket thing;
String personFirstname;
thing.SetPersonFirstname(personFirstname);
Parameters
| Type | Name | Description |
| String | personFirstname | First name. |
Returns
| Type | Description |
| Void |
SetPersonFullname(String)
Sets the full name for the primary person (customer)
Declaration
Void SetPersonFullname(String personFullname) Examples
NSTicket thing;
String personFullname;
thing.SetPersonFullname(personFullname);
Parameters
| Type | Name | Description |
| String | personFullname |
Returns
| Type | Description |
| Void |
SetPersonLastname(String)
Declaration
Void SetPersonLastname(String personLastname) Examples
NSTicket thing;
String personLastname;
thing.SetPersonLastname(personLastname);
Parameters
| Type | Name | Description |
| String | personLastname | Last name. |
Returns
| Type | Description |
| Void |
SetPersonMiddleName(String)
Declaration
Void SetPersonMiddleName(String personMiddleName) Examples
NSTicket thing;
String personMiddleName;
thing.SetPersonMiddleName(personMiddleName);
Parameters
| Type | Name | Description |
| String | personMiddleName | Middle name or 'van' etc. |
Returns
| Type | Description |
| Void |
SetPriority(Integer)
Declaration
Void SetPriority(Integer priority) Examples
NSTicket thing;
Integer priority;
thing.SetPriority(priority);
Parameters
| Type | Name | Description |
| Integer | priority | The reference to the ticket_priority table. |
Returns
| Type | Description |
| Void |
SetPriorityName(String)
Declaration
Void SetPriorityName(String priorityName) Examples
NSTicket thing;
String priorityName;
thing.SetPriorityName(priorityName);
Parameters
| Type | Name | Description |
| String | priorityName | The name of the priority. |
Returns
| Type | Description |
| Void |
SetReadByCustomer(DateTime)
Declaration
Void SetReadByCustomer(DateTime readByCustomer) Examples
NSTicket thing;
DateTime readByCustomer;
thing.SetReadByCustomer(readByCustomer);
Parameters
| Type | Name | Description |
| DateTime | readByCustomer | The datetime for when the ticket was read by the customer. |
Returns
| Type | Description |
| Void |
SetReadByOwner(DateTime)
Declaration
Void SetReadByOwner(DateTime readByOwner) Examples
NSTicket thing;
DateTime readByOwner;
thing.SetReadByOwner(readByOwner);
Parameters
| Type | Name | Description |
| DateTime | readByOwner | The datetime for when the ticket last was read by the owner. |
Returns
| Type | Description |
| Void |
SetReadStatus(Integer)
Declaration
Void SetReadStatus(Integer readStatus) Examples
NSTicket thing;
Integer readStatus;
thing.SetReadStatus(readStatus);
Parameters
| Type | Name | Description |
| Integer | readStatus | Whether the owner has read the ticket or not (red, yellow, green). See <xref href="CRMScript.NetServer.TicketReadStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetRealTimeSpentExternally(Integer)
Declaration
Void SetRealTimeSpentExternally(Integer realTimeSpentExternally) Examples
NSTicket thing;
Integer realTimeSpentExternally;
thing.SetRealTimeSpentExternally(realTimeSpentExternally);
Parameters
| Type | Name | Description |
| Integer | realTimeSpentExternally | The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state. |
Returns
| Type | Description |
| Void |
SetRealTimeSpentInternally(Integer)
Declaration
Void SetRealTimeSpentInternally(Integer realTimeSpentInternally) Examples
NSTicket thing;
Integer realTimeSpentInternally;
thing.SetRealTimeSpentInternally(realTimeSpentInternally);
Parameters
| Type | Name | Description |
| Integer | realTimeSpentInternally | The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state. |
Returns
| Type | Description |
| Void |
SetRealTimeSpentQueue(Integer)
Declaration
Void SetRealTimeSpentQueue(Integer realTimeSpentQueue) Examples
NSTicket thing;
Integer realTimeSpentQueue;
thing.SetRealTimeSpentQueue(realTimeSpentQueue);
Parameters
| Type | Name | Description |
| Integer | realTimeSpentQueue | The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state. |
Returns
| Type | Description |
| Void |
SetRealTimeToClose(Integer)
Declaration
Void SetRealTimeToClose(Integer realTimeToClose) Examples
NSTicket thing;
Integer realTimeToClose;
thing.SetRealTimeToClose(realTimeToClose);
Parameters
| Type | Name | Description |
| Integer | realTimeToClose | Same as time_to_close, but not calculated based on priority. |
Returns
| Type | Description |
| Void |
SetRealTimeToReply(Integer)
Declaration
Void SetRealTimeToReply(Integer realTimeToReply) Examples
NSTicket thing;
Integer realTimeToReply;
thing.SetRealTimeToReply(realTimeToReply);
Parameters
| Type | Name | Description |
| Integer | realTimeToReply | Same as time_to_reply, but not calculated based on priority. |
Returns
| Type | Description |
| Void |
SetRepliedAt(DateTime)
Declaration
Void SetRepliedAt(DateTime repliedAt) Examples
NSTicket thing;
DateTime repliedAt;
thing.SetRepliedAt(repliedAt);
Parameters
| Type | Name | Description |
| DateTime | repliedAt | The datetime for when the ticket was replied to. I.e. the first external message added to the ticket. |
Returns
| Type | Description |
| Void |
SetSlevel(Integer)
Declaration
Void SetSlevel(Integer slevel) Examples
NSTicket thing;
Integer slevel;
thing.SetSlevel(slevel);
Parameters
| Type | Name | Description |
| Integer | slevel | The security-level of the ticket. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetTicketId(Integer)
Declaration
Void SetTicketId(Integer ticketId) Examples
NSTicket thing;
Integer ticketId;
thing.SetTicketId(ticketId);
Parameters
| Type | Name | Description |
| Integer | ticketId | The primary key (auto-incremented). |
Returns
| Type | Description |
| Void |
SetTicketStatus(Integer)
Declaration
Void SetTicketStatus(Integer ticketStatus) Examples
NSTicket thing;
Integer ticketStatus;
thing.SetTicketStatus(ticketStatus);
Parameters
| Type | Name | Description |
| Integer | ticketStatus | User defined ticket status. |
Returns
| Type | Description |
| Void |
SetTicketStatusDisplayValue(String)
Gets the display name of the ticket status.
Declaration
Void SetTicketStatusDisplayValue(String ticketStatusDisplayValue) Examples
NSTicket thing;
String ticketStatusDisplayValue;
thing.SetTicketStatusDisplayValue(ticketStatusDisplayValue);
Parameters
| Type | Name | Description |
| String | ticketStatusDisplayValue |
Returns
| Type | Description |
| Void |
SetTimeSpentExternally(Integer)
Declaration
Void SetTimeSpentExternally(Integer timeSpentExternally) Examples
NSTicket thing;
Integer timeSpentExternally;
thing.SetTimeSpentExternally(timeSpentExternally);
Parameters
| Type | Name | Description |
| Integer | timeSpentExternally | The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state. |
Returns
| Type | Description |
| Void |
SetTimeSpentInternally(Integer)
Declaration
Void SetTimeSpentInternally(Integer timeSpentInternally) Examples
NSTicket thing;
Integer timeSpentInternally;
thing.SetTimeSpentInternally(timeSpentInternally);
Parameters
| Type | Name | Description |
| Integer | timeSpentInternally | The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state. |
Returns
| Type | Description |
| Void |
SetTimeSpentQueue(Integer)
Declaration
Void SetTimeSpentQueue(Integer timeSpentQueue) Examples
NSTicket thing;
Integer timeSpentQueue;
thing.SetTimeSpentQueue(timeSpentQueue);
Parameters
| Type | Name | Description |
| Integer | timeSpentQueue | The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state. |
Returns
| Type | Description |
| Void |
SetTimeToClose(Integer)
Declaration
Void SetTimeToClose(Integer timeToClose) Examples
NSTicket thing;
Integer timeToClose;
thing.SetTimeToClose(timeToClose);
Parameters
| Type | Name | Description |
| Integer | timeToClose | The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's time frame. |
Returns
| Type | Description |
| Void |
SetTimeToReply(Integer)
Declaration
Void SetTimeToReply(Integer timeToReply) Examples
NSTicket thing;
Integer timeToReply;
thing.SetTimeToReply(timeToReply);
Parameters
| Type | Name | Description |
| Integer | timeToReply | The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's time frame. |
Returns
| Type | Description |
| Void |