> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSTicketInfo

> A small carrier that contains information about a ticket.

A small carrier that contains information about a ticket.

## Constructors

### NSTicketInfo()

```crmscript theme={null}
NSTicketInfo
```

Initializes a new instance of the NSTicketInfo class.

## Methods

## GetCategoryName()

```crmscript theme={null}
String GetCategoryName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the category for the request.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String categoryName = thing.GetCategoryName();
```

## GetContactName()

```crmscript theme={null}
String GetContactName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the contact/company connected to the ticket.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String contactName = thing.GetContactName();
```

## GetOwnerName()

```crmscript theme={null}
String GetOwnerName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the owner which the request was assigned to.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String ownerName = thing.GetOwnerName();
```

## GetPersonName()

```crmscript theme={null}
String GetPersonName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the person/customer connected to the ticket.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String personName = thing.GetPersonName();
```

## GetPriorityName()

```crmscript theme={null}
String GetPriorityName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the priority for the request.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String priorityName = thing.GetPriorityName();
```

## GetTicketId()

```crmscript theme={null}
Integer GetTicketId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of the created ticket.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
Integer ticketId = thing.GetTicketId();
```

## GetTicketUrl()

```crmscript theme={null}
String GetTicketUrl()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A URL leading directly to the created request. This is a URL meant to be used by a Service user.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String ticketUrl = thing.GetTicketUrl();
```

## GetTitle()

```crmscript theme={null}
String GetTitle()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The title/subject of the created ticket.

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String title = thing.GetTitle();
```

## SetCategoryName(String)

```crmscript theme={null}
Void SetCategoryName(String categoryName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String categoryName;
thing.SetCategoryName(categoryName);
```

## SetContactName(String)

```crmscript theme={null}
Void SetContactName(String contactName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String contactName;
thing.SetContactName(contactName);
```

## SetOwnerName(String)

```crmscript theme={null}
Void SetOwnerName(String ownerName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String ownerName;
thing.SetOwnerName(ownerName);
```

## SetPersonName(String)

```crmscript theme={null}
Void SetPersonName(String personName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String personName;
thing.SetPersonName(personName);
```

## SetPriorityName(String)

```crmscript theme={null}
Void SetPriorityName(String priorityName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String priorityName;
thing.SetPriorityName(priorityName);
```

## SetTicketId(Integer)

```crmscript theme={null}
Void SetTicketId(Integer ticketId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
Integer ticketId;
thing.SetTicketId(ticketId);
```

## SetTicketUrl(String)

```crmscript theme={null}
Void SetTicketUrl(String ticketUrl)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String ticketUrl;
thing.SetTicketUrl(ticketUrl);
```

## SetTitle(String)

```crmscript theme={null}
Void SetTitle(String title)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSTicketInfo thing;
String title;
thing.SetTitle(title);
```


## Related topics

- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
- [Get ticket info](/en/automation/crmscript/howto/request/get-ticket-info.md)
- [SuperOffice.WebApi.Data.TicketInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketInfo.md)
- [SuperOffice.WebApi.Data.Ticket GetAttachmentInfoRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_GetAttachmentInfoRequest.md)
- [SuperOffice.WebApi.Data.Ticket GetAttachmentInfoNonInlineRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Ticket_GetAttachmentInfoNonInlineRequest.md)
- [ticket](/en/api/mdo-providers/reference/ticket.md)
