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

# NSSaintConfiguration

> Definition of the three periods for status monitors and some other settings per saint entity.

Definition of the three periods for status monitors and some other settings per saint entity.

## Constructors

### NSSaintConfiguration()

```crmscript theme={null}
NSSaintConfiguration
```

Initializes a new instance of the NSSaintConfiguration class.

## Methods

## GetEnabled()

```crmscript theme={null}
Bool GetEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - On/off switch for Saint functionality for this entity.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Bool enabled = thing.GetEnabled();
```

## GetGenerationEnd()

```crmscript theme={null}
DateTime GetGenerationEnd()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - When was the last regeneration finished.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
DateTime generationEnd = thing.GetGenerationEnd();
```

## GetGenerationStart()

```crmscript theme={null}
DateTime GetGenerationStart()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - When was the last regeneration started.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
DateTime generationStart = thing.GetGenerationStart();
```

## GetOwnerTable()

```crmscript theme={null}
Integer GetOwnerTable()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The table that is the owning entity.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer ownerTable = thing.GetOwnerTable();
```

## GetPeriod1()

```crmscript theme={null}
Integer GetPeriod1()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Length of the first counter period.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period1 = thing.GetPeriod1();
```

## GetPeriod2()

```crmscript theme={null}
Integer GetPeriod2()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Length of the second counter period.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period2 = thing.GetPeriod2();
```

## GetPeriod3()

```crmscript theme={null}
Integer GetPeriod3()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Length of the third counter period.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period3 = thing.GetPeriod3();
```

## GetRowsGenerated()

```crmscript theme={null}
Integer GetRowsGenerated()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of CounterValue rows generated for this entity.

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer rowsGenerated = thing.GetRowsGenerated();
```

## SetEnabled(Bool)

```crmscript theme={null}
Void SetEnabled(Bool enabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Bool enabled;
thing.SetEnabled(enabled);
```

## SetGenerationEnd(DateTime)

```crmscript theme={null}
Void SetGenerationEnd(DateTime generationEnd)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
DateTime generationEnd;
thing.SetGenerationEnd(generationEnd);
```

## SetGenerationStart(DateTime)

```crmscript theme={null}
Void SetGenerationStart(DateTime generationStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
DateTime generationStart;
thing.SetGenerationStart(generationStart);
```

## SetOwnerTable(Integer)

```crmscript theme={null}
Void SetOwnerTable(Integer ownerTable)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer ownerTable;
thing.SetOwnerTable(ownerTable);
```

## SetPeriod1(Integer)

```crmscript theme={null}
Void SetPeriod1(Integer period1)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period1;
thing.SetPeriod1(period1);
```

## SetPeriod2(Integer)

```crmscript theme={null}
Void SetPeriod2(Integer period2)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period2;
thing.SetPeriod2(period2);
```

## SetPeriod3(Integer)

```crmscript theme={null}
Void SetPeriod3(Integer period3)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer period3;
thing.SetPeriod3(period3);
```

## SetRowsGenerated(Integer)

```crmscript theme={null}
Void SetRowsGenerated(Integer rowsGenerated)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSaintConfiguration thing;
Integer rowsGenerated;
thing.SetRowsGenerated(rowsGenerated);
```


## Related topics

- [NSSaintAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSSaintAgent.md)
- [Save Saint Configuration](/en/api/reference/restful/agent/saint_agent/save-saint-configuration.md)
- [Get Saint Configurations](/en/api/reference/restful/agent/saint_agent/get-saint-configurations.md)
- [SaintConfiguration table](/en/database/tables/saintconfiguration.md)
- [Create Default Saint Configuration](/en/api/reference/restful/agent/saint_agent/create-default-saint-configuration.md)
- [SuperOffice.WebApi.Data.Saint GetSaintConfigurationsRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Saint_GetSaintConfigurationsRequest.md)
