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

# <a id="SuperOffice_WebApi_Data_TargetAssignment" /> Class TargetAssignment

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

Carrier object for TargetAssignment.
Target Period Assignment carrier

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[TargetAssignment](SuperOffice.WebApi.Data.TargetAssignment.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)

## Constructors

### <a id="SuperOffice_WebApi_Data_TargetAssignment__ctor" /> TargetAssignment()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_TargetAssignment_Currency" /> Currency

The currency of the target.
<p>Use MDO List name "currency" to get list items.</p>

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_DimensionListItem" /> DimensionListItem

Id of the dimension list item this assignement is for

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_DimensionListItemDisplayName" /> DimensionListItemDisplayName

Display name of the dimension list item this assignement is for.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_Locked" /> Locked

Locked, should not be editable

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_TargetAssignmentInfoId" /> TargetAssignmentInfoId

Primary key

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_TargetAssociate" /> TargetAssociate

The associate this target is set for. Only one of TargetAssociate, TargetContact and TargetUserGroup will be set for a target.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_TargetContact" /> TargetContact

The contact this target is set for. Only one of TargetAssociate, TargetContact and TargetUserGroup will be set for a target.

```csharp theme={null}
public virtual Contact TargetContact { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_TargetUserGroup" /> TargetUserGroup

The usergroup this target is set for. Only one of TargetAssociate, TargetContact and TargetUserGroup will be set for a target.

```csharp theme={null}
public virtual UserGroup TargetUserGroup { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetAssignment_Values" /> Values

Values of the target; all periods; in ascending order.

```csharp theme={null}
public virtual double[] Values { get; set; }
```

#### Property Value

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

## See Also

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


## Related topics

- [SuperOffice.WebApi.Agents.TargetsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TargetsAgent.md)
- [SuperOffice.WebApi.Agents.ITargetsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITargetsAgent.md)
- [SuperOffice.WebApi.Data.TargetGroup](/en/api/reference/webapi/SuperOffice.WebApi.Data.TargetGroup.md)
- [SuperOffice.WebApi.Data.Targets GetTargetAssignmentForYearRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_GetTargetAssignmentForYearRequest.md)
- [SuperOffice.WebApi.Data.Targets GetTargetAssignmentForYearAndDimensionRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_GetTargetAssignmentForYearAndDimensionRequest.md)
- [SuperOffice.WebApi.Data.Targets CreateDefaultTargetAssignmentForCompanyRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_CreateDefaultTargetAssignmentForCompanyRequest.md)
