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

# NSSmsConfig

> SMS settings for Customer Service SMS providers.

SMS settings for Customer Service SMS providers.

## Constructors

### NSSmsConfig()

```crmscript theme={null}
NSSmsConfig
```

Initializes a new instance of the NSSmsConfig class.

## Methods

## GetDefaultSmsCountry()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Phone prefix, will default to the current users HomeCountryId.

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String defaultSmsCountry = thing.GetDefaultSmsCountry();
```

## GetNetServerSmsProvider()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of the selected provider, i.e. CM, Compaya SMS (cpsms.dk), Intelecom SMS, Link Mobility SMS, SMS Teknik, or TXTLocal.

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String netServerSmsProvider = thing.GetNetServerSmsProvider();
```

## GetNsPluginConfig()

```crmscript theme={null}
Map GetNsPluginConfig()
```

**Returns:** [CRMScript.Native.Map](CRMScript.Native.Map) - Configuration settings provided by the SMS provider. Typically contains newline-delimited settings such as username and password.

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
Map nsPluginConfig = thing.GetNsPluginConfig();
```

## GetNsPluginSender()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The sender of the SMS messages. This text will appear on the recipient's mobile phone.

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String nsPluginSender = thing.GetNsPluginSender();
```

## SetDefaultSmsCountry(String)

```crmscript theme={null}
Void SetDefaultSmsCountry(String defaultSmsCountry)
```

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

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String defaultSmsCountry;
thing.SetDefaultSmsCountry(defaultSmsCountry);
```

## SetNetServerSmsProvider(String)

```crmscript theme={null}
Void SetNetServerSmsProvider(String netServerSmsProvider)
```

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

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String netServerSmsProvider;
thing.SetNetServerSmsProvider(netServerSmsProvider);
```

## SetNsPluginConfig(Map)

```crmscript theme={null}
Void SetNsPluginConfig(Map nsPluginConfig)
```

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

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
Map nsPluginConfig;
thing.SetNsPluginConfig(nsPluginConfig);
```

## SetNsPluginSender(String)

```crmscript theme={null}
Void SetNsPluginSender(String nsPluginSender)
```

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

**Example:**

```crmscript theme={null}
NSSmsConfig thing;
String nsPluginSender;
thing.SetNsPluginSender(nsPluginSender);
```


## Related topics

- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
- [Get Sms Config](/en/api/reference/restful/agent/customerservice_agent/get-sms-config.md)
- [Configure outgoing SMS connector](/en/marketing/sms/it/set-up.md)
- [SMS configuration in Global preferences](/en/admin/preferences/sms.md)
- [SuperOffice.WebApi.Data.SmsConfig](/en/api/reference/webapi/SuperOffice.WebApi.Data.SmsConfig.md)
- [SuperOffice.WebApi.Data.CustomerService GetSmsConfigRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.CustomerService_GetSmsConfigRequest.md)
