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

# <a id="SuperOffice_WebApi_Data_TargetGroup" /> Class TargetGroup

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

Carrier object for TargetGroup.
Target Group carrier

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

#### Inheritance

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

## Constructors

### <a id="SuperOffice_WebApi_Data_TargetGroup__ctor" /> TargetGroup()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_TargetGroup_EntityType" /> EntityType

Entity type for this set of targets (Sale, Project, Selection, Appointment...)
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TargetEntityType? EntityType { get; set; }
```

#### Property Value

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

#### See Also

[TargetGroup](SuperOffice.WebApi.Data.TargetGroup.md).[EntityType\_String](SuperOffice.WebApi.Data.TargetGroup.md#SuperOffice_WebApi_Data_TargetGroup_EntityType_String)

### <a id="SuperOffice_WebApi_Data_TargetGroup_EntityType_String" /> EntityType\_String

Entity type for this set of targets (Sale, Project, Selection, Appointment...)
Raw string enum value.

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

#### Property Value

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

#### See Also

[TargetGroup](SuperOffice.WebApi.Data.TargetGroup.md).[EntityType](SuperOffice.WebApi.Data.TargetGroup.md#SuperOffice_WebApi_Data_TargetGroup_EntityType)

### <a id="SuperOffice_WebApi_Data_TargetGroup_PeriodType" /> PeriodType

Period type for editing this set of targets (Year, Quarter...)
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TargetPeriodType? PeriodType { get; set; }
```

#### Property Value

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

#### See Also

[TargetGroup](SuperOffice.WebApi.Data.TargetGroup.md).[PeriodType\_String](SuperOffice.WebApi.Data.TargetGroup.md#SuperOffice_WebApi_Data_TargetGroup_PeriodType_String)

### <a id="SuperOffice_WebApi_Data_TargetGroup_PeriodType_String" /> PeriodType\_String

Period type for editing this set of targets (Year, Quarter...)
Raw string enum value.

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

#### Property Value

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

#### See Also

[TargetGroup](SuperOffice.WebApi.Data.TargetGroup.md).[PeriodType](SuperOffice.WebApi.Data.TargetGroup.md#SuperOffice_WebApi_Data_TargetGroup_PeriodType)

### <a id="SuperOffice_WebApi_Data_TargetGroup_TargetAssignments" /> TargetAssignments

Collection of target values

```csharp theme={null}
public virtual TargetAssignment[] TargetAssignments { get; set; }
```

#### Property Value

[TargetAssignment](SuperOffice.WebApi.Data.TargetAssignment.md)\[]

### <a id="SuperOffice_WebApi_Data_TargetGroup_TargetDimension" /> TargetDimension

Info about the target dimensions

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetGroup_TargetGroupId" /> TargetGroupId

Primary key

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TargetGroup_Year" /> Year

The year this set of targets are associated with (2020, 2021...)

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

#### Property Value

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

## 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.TargetRevisionHistory](/en/api/reference/webapi/SuperOffice.WebApi.Data.TargetRevisionHistory.md)
- [SuperOffice.WebApi.Data.Targets ExportTargetGroupToExcelRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_ExportTargetGroupToExcelRequest.md)
- [SuperOffice.WebApi.Data.Targets GetTargetGroupForYearRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_GetTargetGroupForYearRequest.md)
- [SuperOffice.WebApi.Data.Targets GetTargetGroupIdsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Targets_GetTargetGroupIdsRequest.md)
