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

# <a id="SuperOffice_WebApi_Data_TicketRelationResult" /> Class TicketRelationResult

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

Carrier object for TicketRelationResult.
Result of a ticket relation operation, indicating success or the reason for failure.

```csharp theme={null}
public class TicketRelationResult
```

#### Inheritance

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

#### Inherited Members

[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)

## Constructors

### <a id="SuperOffice_WebApi_Data_TicketRelationResult__ctor" /> TicketRelationResult()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_TicketRelationResult_ErrorMessage" /> ErrorMessage

Error message describing why the operation failed, if IsValid is false.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationResult_IsValid" /> IsValid

True if the operation succeeded; false if it failed.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationResult_RelationError" /> RelationError

The reason the operation failed, if IsValid is false.
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TicketRelationError? RelationError { get; set; }
```

#### Property Value

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

#### See Also

[TicketRelationResult](SuperOffice.WebApi.Data.TicketRelationResult.md).[RelationError\_String](SuperOffice.WebApi.Data.TicketRelationResult.md#SuperOffice_WebApi_Data_TicketRelationResult_RelationError_String)

### <a id="SuperOffice_WebApi_Data_TicketRelationResult_RelationError_String" /> RelationError\_String

The reason the operation failed, if IsValid is false.
Raw string enum value.

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

#### Property Value

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

#### See Also

[TicketRelationResult](SuperOffice.WebApi.Data.TicketRelationResult.md).[RelationError](SuperOffice.WebApi.Data.TicketRelationResult.md#SuperOffice_WebApi_Data_TicketRelationResult_RelationError)

### <a id="SuperOffice_WebApi_Data_TicketRelationResult_SourceTicketId" /> SourceTicketId

The id of the source ticket this result applies to.

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

#### Property Value

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

## See Also

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


## Related topics

- [SuperOffice.WebApi.Agents.TicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TicketAgent.md)
- [SuperOffice.WebApi.Agents.ITicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITicketAgent.md)
- [SuperOffice.WebApi.Data.TicketRelationDefinitionResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationDefinitionResult.md)
- [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.TicketRelationType](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationType.md)
