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

# NSCsFeatureToggle

> Carrier object for CsFeatureToggle.

Carrier object for CsFeatureToggle.

## Constructors

### NSCsFeatureToggle()

```crmscript theme={null}
NSCsFeatureToggle
```

Initializes a new instance of the NSCsFeatureToggle class.

## Methods

## GetName()

```crmscript theme={null}
String GetName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of the feature toggle.

**Example:**

```crmscript theme={null}
NSCsFeatureToggle thing;
String name = thing.GetName();
```

## GetState()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - is the feature toggle is turned on or off?

**Example:**

```crmscript theme={null}
NSCsFeatureToggle thing;
Bool state = thing.GetState();
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

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

**Example:**

```crmscript theme={null}
NSCsFeatureToggle thing;
String name;
thing.SetName(name);
```

## SetState(Bool)

```crmscript theme={null}
Void SetState(Bool state)
```

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

**Example:**

```crmscript theme={null}
NSCsFeatureToggle thing;
Bool state;
thing.SetState(state);
```


## Related topics

- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [SuperOffice.WebApi.Data.CsFeatureToggle](/en/api/reference/webapi/SuperOffice.WebApi.Data.CsFeatureToggle.md)
- [SuperOffice.WebApi.Agents.ICustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ICustomerServiceAgent.md)
- [SuperOffice.WebApi.Agents.CustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CustomerServiceAgent.md)
- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
- [Update Feature Toggles](/en/api/reference/restful/agent/customerservice_agent/update-feature-toggles.md)
