Skip to main content

Class TicketMessageEntity

Namespace: SuperOffice.WebApi.Data
Assembly: SuperOffice.WebApi.dll
Carrier object for TicketMessageEntity. The ticket messages are e-mails, SMS or other messages attached to a ticket (aka request).

Inheritance

objectCarrierTicketMessageEntity

Inherited Members

Carrier.TableRight, Carrier.FieldProperties, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Examples

Get TicketMessageEntity 123 using the WebApi client: <pre><code class=“lang-csharp”>var configuration = new WebApiConfiguration(url); var agent = new TicketAgent(configuration); var ticketMessageEntity = agent.GetTicketMessageEntity( 123 );</code></pre>

Remarks

Use <xref href=“SuperOffice.CRM.Services.ArchiveAgent?text=Archive+agent” data-throw-if-not-resolved=“false”></xref>: All TicketMessageEntity: <pre><code class=“lang-csharp”>“TicketMessage”</code></pre>

Constructors

TicketMessageEntity()

Default constructor - defaults any enum props to 0.

Properties

AttachmentsInfo

Message attachments information

Property Value

AttachmentEntity[]

Author

A string representing the author of the message. Could be a user&apos;s name, or a persons email address.

Property Value

string

Badge

Badge to explicitly determine how a message was generated NULL if unknown enum value.

Property Value

BadgeType?

See Also

TicketMessageEntity.Badge_String

Badge_String

Badge to explicitly determine how a message was generated Raw string enum value.

Property Value

string

See Also

TicketMessageEntity.Badge

Body

The textbody for the message.

Property Value

string

CreatedAt

When the message was posted.

Property Value

DateTime

CreatedBy

The associate who created this ticket message

Property Value

Associate

CustomFields

Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual <xref href=“SuperOffice.WebApi.Data.TicketMessageEntity.ExtraFields” data-throw-if-not-resolved=“false”></xref> and UserDefinedFields properties are deprecated in favor of this combined collection. The value string is the encoded value: “[I:123]” or “[DT:2019-09-11]”.

Property Value

StringDictionary

Remarks

The naming convention of the key string is as follows: <table><tbody><tr><td class=“term”>Extra field data</td><td class=“description”> [Extra field name]<p></p> Example: <pre><code class=“lang-csharp”>‘x_gorp’ = ‘[I:123]’</code></pre> </td></tr><tr><td class=“term”>User defined field data</td><td class=“description”> [Prog-id name]<p></p> Example: <pre><code class=“lang-csharp”>‘SuperOffice:1’ = ‘[I:123]’</code></pre><p></p> </td></tr></tbody></table>

DebugInfo

The debug info for the message.

Property Value

string

EjMessageId

The primary key (auto-incremented)

Property Value

int

EmailHeader

The email header is saved in this field as raw text

Property Value

string

ExtraFields

Deprecated: Use <xref href=“SuperOffice.WebApi.Data.TicketMessageEntity.CustomFields” data-throw-if-not-resolved=“false”></xref> instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc. The value string is the encoded value: “[I:123]” or “[DT:2019-09-11]”.

Property Value

StringDictionary

Remarks

The naming convention of the key string is as follows: <table><tbody><tr><td class=“term”>Plug-in data</td><td class=“description”> [Plug-in name].[Property name] Example: DocumentPlugin.DocumentType </td></tr><tr><td class=“term”>Foreign key data</td><td class=“description”> The device identity is appended directly to the device name if it exists. This is not commonly used, but the database opens for this as a possibility to have several devices with the same name, and hence we would ensure an unique key if this field is used. Example: Audience.SecretService.DefaultCountry </td></tr><tr><td class=“term”>User defined table data</td><td class=“description”> [Table name].[Field name] Example: Phunneling.AggregatedSales </td></tr><tr><td class=“term”>Other</td><td class=“description”> Other data sources must ensure an unique name. If the key already exists we do not add the data to the dictionary. We also ensure that SuperOffice data are added first, so that existing data doesnt change when more data sources are added (with duplicate data keys). </td></tr></tbody></table>

HtmlBody

The html body for the message (if any).

Property Value

string

Important

If this message is important or not.

Property Value

bool

Language

The language this message is in, based on some kind of analysis

Property Value

string

MailSorter

The name of the mail sorter used when the email was imported. Note: We must use name instead of id since the id&apos;s change every time one changes the mail sorter. :-0

Property Value

string

MessageCategory

Defines what kind of message this is. NULL if unknown enum value.

Property Value

TicketMessageCategory?

See Also

TicketMessageEntity.MessageCategory_String

MessageCategory_String

Defines what kind of message this is. Raw string enum value.

Property Value

string

See Also

TicketMessageEntity.MessageCategory

MessageHeaders

Contains the message headers, like To, Cc, Bcc information, or custom headers

Property Value

TicketMessageHeader[]

MessageId

The Message-Id header value from the email. Used for threading, i.e. connecting messages to existing tickets.

Property Value

string

Person

If this is an incoming message, this will contain the person <p>Use MDO List name “person_new” to get list items.</p>

Property Value

Person

SearchTitle

A copy of the title of the ticket, for search optimisation and simpler reporting.

Property Value

string

Sentiment

Sentiment index, 100 = completely happy; -100 = suicidally unhappy; 0 = no idea

Property Value

int

SentimentConfidence

Confidence of sentiment index, 0 = no idea, 100 = completely sure

Property Value

int

Slevel

The securitylevel of the message. NULL if unknown enum value.

Property Value

TicketSecurityLevel?

See Also

TicketMessageEntity.Slevel_String

Slevel_String

The securitylevel of the message. Raw string enum value.

Property Value

string

See Also

TicketMessageEntity.Slevel

Ticket

The connected ticket

Property Value

Ticket

TimeSpent

The time spent (minutes) for this message.

Property Value

int

Type

The type of the message (plaintext/html). NULL if unknown enum value.

Property Value

TicketMessageType?

See Also

TicketMessageEntity.Type_String

Type_String

The type of the message (plaintext/html). Raw string enum value.

Property Value

string

See Also

TicketMessageEntity.Type

See Also

TicketAgent, ArchiveAgent,