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

# <a id="SuperOffice_WebApi_Data_ContactRelationEntity" /> Class ContactRelationEntity

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

Carrier object for ContactRelationEntity.
Relationship between a (contact/person) and another (contact/person), as described by the RelationDefinition.

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[ContactRelationEntity](SuperOffice.WebApi.Data.ContactRelationEntity.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 ContactRelationEntity 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new RelationAgent(configuration);
var contactRelationEntity = agent.GetContactRelationEntity( 123 );</code></pre>

## Remarks

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

## Constructors

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity__ctor" /> ContactRelationEntity()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_ActiveText" /> ActiveText

Active text for the relation.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_Comment" /> Comment

Comment for relation

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_CreatedBy" /> CreatedBy

```csharp theme={null}
public virtual Associate CreatedBy { get; set; }
```

#### Property Value

[Associate](SuperOffice.WebApi.Data.Associate.md)

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_CreatedDate" /> CreatedDate

Registered when

```csharp theme={null}
public virtual DateTime CreatedDate { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_DestinationContactId" /> DestinationContactId

Id of the destination contact. The value is mandatory.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_DestinationContactName" /> DestinationContactName

Name of the destination contact.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_DestinationPersonId" /> DestinationPersonId

Id of the destination person. The value is not mandatory. The person must belong to the destination contact.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_DestinationPersonName" /> DestinationPersonName

Name of the destination person.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_PassiveText" /> PassiveText

Passive text for the relation.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_RelationDefinitionId" /> RelationDefinitionId

Reference to definition

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_RelationId" /> RelationId

Primary key

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_Reversed" /> Reversed

Is direction reversed relative to definition

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_SourceContactId" /> SourceContactId

Id of the source contact. The value is mandatory.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_SourceContactName" /> SourceContactName

Name of the source contact.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_SourcePersonId" /> SourcePersonId

Id of the source person. The value is not mandatory. The person must belong to the source contact.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_SourcePersonName" /> SourcePersonName

Name of the source person.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_UpdatedBy" /> UpdatedBy

```csharp theme={null}
public virtual Associate UpdatedBy { get; set; }
```

#### Property Value

[Associate](SuperOffice.WebApi.Data.Associate.md)

### <a id="SuperOffice_WebApi_Data_ContactRelationEntity_UpdatedDate" /> UpdatedDate

Last updated when

```csharp theme={null}
public virtual DateTime UpdatedDate { get; set; }
```

#### Property Value

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

## See Also

[RelationAgent](SuperOffice.WebApi.Agents.RelationAgent.md),
[ArchiveAgent](SuperOffice.WebApi.Agents.ArchiveAgent.md),


## Related topics

- [SuperOffice.WebApi.Data.Relation SaveContactRelationRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Relation_SaveContactRelationRequest.md)
- [SuperOffice.WebApi.Agents.RelationAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.RelationAgent.md)
- [SuperOffice.WebApi.Agents.IRelationAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IRelationAgent.md)
- [SuperOffice.WebApi.Data.CustomObjectRelation](/en/api/reference/webapi/SuperOffice.WebApi.Data.CustomObjectRelation.md)
- [SuperOffice.WebApi.Data.ContactEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.ContactEntity.md)
- [SuperOffice.WebApi.Data.Relation DeleteContactRelationRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Relation_DeleteContactRelationRequest.md)
