Show / Hide Table of Contents

Class Ticket

The ticket carrier is used for representing a service request.

Carrier object for Ticket. Services for the Ticket Carrier is available from the Ticket Agent.
Inheritance
object
Ticket
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.1.0.0")]
public class Ticket : Carrier
Examples

Get Ticket 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new TicketAgent();
   var ticket = agent.GetTicket( 123 );
}

Constructors

Ticket()

Default constructor

Declaration
public Ticket()
See Also
ITicketAgent

Properties

Activate

When the ticket should be activated, if it is postponed.

Declaration
[DataMember]
public virtual DateTime Activate { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

AlertLevel

The alert level for the ticket. Matches the level value of the ticket_alert table.

Declaration
[DataMember]
public virtual short AlertLevel { get; set; }
Property Value
Type Description
short
See Also
ITicketAgent

AlertTimeout

The datetime for when the ticket should jump to the next alert_level.

Declaration
[DataMember]
public virtual DateTime AlertTimeout { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

Author

A string representing the author of the ticket (same as author of first message).

Declaration
[DataMember]
public virtual string Author { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

BaseStatus

The status of the ticket. I.e. active/closed/postponed/deleted

Declaration
[DataMember]
public virtual TicketBaseStatus BaseStatus { get; set; }
Property Value
Type Description
TicketBaseStatus
See Also
ITicketAgent

Category

The id of the category a ticket is in.

Declaration
[DataMember]
public virtual int Category { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

CategoryFullname

The fullname (compiled from parents' names) for this category. E.g. 'norway/product A/support'.

Declaration
[DataMember]
public virtual string CategoryFullname { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

CategoryName

The (short) name of this category. E.g. 'support'.

Declaration
[DataMember]
public virtual string CategoryName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

ClosedAt

When the ticket was closed.

Declaration
[DataMember]
public virtual DateTime ClosedAt { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

ConnectId

If a ticket is connected to another ticket, this field is set to the id of the 'master' ticket.

Declaration
[DataMember]
public virtual int ConnectId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

ContactId

The company of the person in the cust_id field, if that person belongs to a company

Declaration
[DataMember]
public virtual int ContactId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

ContactName

The name of the connected contact

Declaration
[DataMember]
public virtual string ContactName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

CreatedAt

When the ticket was created.

Declaration
[DataMember]
public virtual DateTime CreatedAt { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

CreatedBy

The id of the user who created the ticket. 1 (system user) if the ticket was created externally

Declaration
[DataMember]
public virtual int CreatedBy { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

CreatedByName

Initials, also login name, possibly database user name

Declaration
[DataMember]
public virtual string CreatedByName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

CustId

The reference to the customer. NULL or -1 if ticket is not connected to customer.

Declaration
[DataMember]
public virtual int CustId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

Deadline

Deadline for ticket.

Declaration
[DataMember]
public virtual DateTime Deadline { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

FirstReadByUser

The datetime for when the ticket first was read by a user.

Declaration
[DataMember]
public virtual DateTime FirstReadByUser { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

FormSubmissionId

If this ticket was created from a form submission, this field will point to that record

Declaration
[DataMember]
public virtual int FormSubmissionId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

FromAddress

The from-address used when this ticket got created, e.g. by email

Declaration
[DataMember]
public virtual string FromAddress { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

HasAttachment

Boolean indicating if this ticket has one or more attachments.

Declaration
[DataMember]
public virtual bool HasAttachment { get; set; }
Property Value
Type Description
bool
See Also
ITicketAgent

Language

The language of the first external message

Declaration
[DataMember]
public virtual string Language { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

LastChanged

The last time the ticket was modified.

Declaration
[DataMember]
public virtual DateTime LastChanged { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

NumMessages

The total number of messages for this request.

Declaration
[DataMember]
public virtual int NumMessages { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

NumReplies

The number of replies (messages) to the customer for this request.

Declaration
[DataMember]
public virtual int NumReplies { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

Origin

What is the origin of this ticket

Declaration
[DataMember]
public virtual TicketOrigin Origin { get; set; }
Property Value
Type Description
TicketOrigin
See Also
ITicketAgent

OwnedBy

The id of the user who owns the ticket. 1 (system user) if the ticket is unassigned.

Declaration
[DataMember]
public virtual int OwnedBy { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

OwnedByAssociateId

The associate id of the owner of the ticket.

Declaration
[DataMember]
public virtual int OwnedByAssociateId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

OwnedByName

Initials, also login name, possibly database user name

Declaration
[DataMember]
public virtual string OwnedByName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

PersonFirstname

First name

Declaration
[DataMember]
public virtual string PersonFirstname { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

PersonFullname

Get the full name for the primary person (customer)

Declaration
[DataMember]
public virtual string PersonFullname { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

PersonLastname

Last name

Declaration
[DataMember]
public virtual string PersonLastname { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

PersonMiddleName

Middle name or 'van' etc.

Declaration
[DataMember]
public virtual string PersonMiddleName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

Priority

The reference to the ticket_priority table.

Declaration
[DataMember]
public virtual int Priority { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

PriorityName

The name of the priority.

Declaration
[DataMember]
public virtual string PriorityName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

ProjectId

Reference to project table

Declaration
[DataMember]
public virtual int ProjectId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

ProjectName

The name of the connected project

Declaration
[DataMember]
public virtual string ProjectName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

ReadByCustomer

The datetime for when the ticket was read by the customer.

Declaration
[DataMember]
public virtual DateTime ReadByCustomer { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

ReadByOwner

The datetime for when the ticket last was read by the owner.

Declaration
[DataMember]
public virtual DateTime ReadByOwner { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

ReadStatus

Whether the owner has read the ticket or not (red, yellow, green).

Declaration
[DataMember]
public virtual TicketReadStatus ReadStatus { get; set; }
Property Value
Type Description
TicketReadStatus
See Also
ITicketAgent

RealTimeSpentExternally

The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state

Declaration
[DataMember]
public virtual int RealTimeSpentExternally { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

RealTimeSpentInternally

The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state

Declaration
[DataMember]
public virtual int RealTimeSpentInternally { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

RealTimeSpentQueue

The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state

Declaration
[DataMember]
public virtual int RealTimeSpentQueue { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

RealTimeToClose

Same as time_to_close, but not calculated based on priority.

Declaration
[DataMember]
public virtual int RealTimeToClose { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

RealTimeToReply

Same as time_to_reply, but not calculated based on priority.

Declaration
[DataMember]
public virtual int RealTimeToReply { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

RepliedAt

The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.

Declaration
[DataMember]
public virtual DateTime RepliedAt { get; set; }
Property Value
Type Description
DateTime
See Also
ITicketAgent

SaleHeading

The heading of the connected sale

Declaration
[DataMember]
public virtual string SaleHeading { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

SaleId

Reference to sale table

Declaration
[DataMember]
public virtual int SaleId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

Sentiment

The sentiment index of the last external message

Declaration
[DataMember]
public virtual int Sentiment { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

SentimentConfidence

The sentiment confidence of the last external message

Declaration
[DataMember]
public virtual int SentimentConfidence { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

Slevel

The securitylevel of the ticket.

Declaration
[DataMember]
public virtual TicketSecurityLevel Slevel { get; set; }
Property Value
Type Description
TicketSecurityLevel
See Also
ITicketAgent

TicketId

The primary key (auto-incremented)

Declaration
[DataMember]
public virtual int TicketId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TicketStatus

User defined ticket status

Declaration
[DataMember]
public virtual int TicketStatus { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TicketStatusDisplayValue

Get the display name of the ticket status.

Declaration
[DataMember]
public virtual string TicketStatusDisplayValue { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

TicketTypeId

The id of the Request Type

Declaration
[DataMember]
public virtual int TicketTypeId { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TicketTypeName

The name of the Request Type

Declaration
[DataMember]
public virtual string TicketTypeName { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

TimeSpent

The total time (minutes). Aggregated time spent from ticket's messages. Read-only for external use.

Declaration
[DataMember]
public virtual int TimeSpent { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

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

Declaration
[DataMember]
public virtual int TimeSpentExternally { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TimeSpentInternally

The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state

Declaration
[DataMember]
public virtual int TimeSpentInternally { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TimeSpentQueue

The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state

Declaration
[DataMember]
public virtual int TimeSpentQueue { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TimeToClose

The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe.

Declaration
[DataMember]
public virtual int TimeToClose { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

TimeToReply

The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe.

Declaration
[DataMember]
public virtual int TimeToReply { get; set; }
Property Value
Type Description
int
See Also
ITicketAgent

Title

The title of the ticket.

Declaration
[DataMember]
public virtual string Title { get; set; }
Property Value
Type Description
string
See Also
ITicketAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
ITicketAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
ITicketAgent

See Also

ITicketAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top