> ## 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.

# SuperOffice.WebApi.Data.TicketRelationDefinitionEntity

# <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity" /> Class TicketRelationDefinitionEntity

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for TicketRelationDefinitionEntity.
Ticket relation definition entity

```csharp theme={null}
public class TicketRelationDefinitionEntity : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[TicketRelationDefinitionEntity](SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get TicketRelationDefinitionEntity 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new ListAgent(configuration);
var ticketRelationDefinitionEntity = agent.GetTicketRelationDefinitionEntity( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity__ctor" /> TicketRelationDefinitionEntity()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public TicketRelationDefinitionEntity()
```

## Properties

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_Description" /> Description

Tooltip or other description

```csharp theme={null}
public virtual string Description { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_DestinationTicketTypes" /> DestinationTicketTypes

Destination ticket type(s) for this relation

```csharp theme={null}
public virtual int[] DestinationTicketTypes { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_IsBuiltIn" /> IsBuiltIn

Is this row part of SuperOffice priming data

```csharp theme={null}
public virtual bool IsBuiltIn { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_IsCloseParentWithChild" /> IsCloseParentWithChild

Close parent when all children are closed

```csharp theme={null}
public virtual bool IsCloseParentWithChild { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_IsCloseWithParent" /> IsCloseWithParent

Offer to close all related when parent is closed

```csharp theme={null}
public virtual bool IsCloseWithParent { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_IsParentMandatory" /> IsParentMandatory

Parent relation is mandatory when a new request is created

```csharp theme={null}
public virtual bool IsParentMandatory { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_IsPreventClosingParent" /> IsPreventClosingParent

Prevent closing parent until all children are closed

```csharp theme={null}
public virtual bool IsPreventClosingParent { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_Name" /> Name

The name of this Ticket relation

```csharp theme={null}
public virtual string Name { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_Rank" /> Rank

Rank order

```csharp theme={null}
public virtual short Rank { get; set; }
```

#### Property Value

[short](https://learn.microsoft.com/dotnet/api/system.int16)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_RelationType" /> RelationType

Type of the relation (Related, Parent, Child)
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TicketRelationType? RelationType { get; set; }
```

#### Property Value

[TicketRelationType](SuperOffice.WebApi.Data.TicketRelationType.md)?

#### See Also

[TicketRelationDefinitionEntity](SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md).[RelationType\_String](SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md#SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_RelationType_String)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_RelationType_String" /> RelationType\_String

Type of the relation (Related, Parent, Child)
Raw string enum value.

```csharp theme={null}
[JsonProperty("RelationType")]
public string RelationType_String { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### See Also

[TicketRelationDefinitionEntity](SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md).[RelationType](SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md#SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_RelationType)

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_SourceTicketTypes" /> SourceTicketTypes

Source ticket type(s) for this relation

```csharp theme={null}
public virtual int[] SourceTicketTypes { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

### <a id="SuperOffice_WebApi_Data_TicketRelationDefinitionEntity_TicketRelationDefId" /> TicketRelationDefId

Primary key

```csharp theme={null}
public virtual int TicketRelationDefId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[ListAgent](SuperOffice.WebApi.Agents.ListAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
- [SuperOffice.WebApi.Data.List GetAllTicketRelationDefinitionEntitiesRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.List_GetAllTicketRelationDefinitionEntitiesRequest.md)
- [SuperOffice.WebApi.Data.TicketRelationEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationEntity.md)
- [SuperOffice.WebApi.Data.TicketRelationDefinitionResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationDefinitionResult.md)
- [SuperOffice.WebApi.Data.List ValidateTicketRelationDefinitionRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.List_ValidateTicketRelationDefinitionRequest.md)
