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

# NSPocketStartupData

> The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.

The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.

## Constructors

### NSPocketStartupData()

```crmscript theme={null}
NSPocketStartupData
```

Initializes a new instance of the NSPocketStartupData class.

## Methods

## GetBaseLocaleTimeZoneData()

```crmscript theme={null}
NSTimeZoneData GetBaseLocaleTimeZoneData()
```

**Returns:** [CRMScript.NetServer.NSTimeZoneData](CRMScript.NetServer.NSTimeZoneData)

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData = thing.GetBaseLocaleTimeZoneData();
```

## GetCustomData()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Custom data for Pocket, in JSON format.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
String customData = thing.GetCustomData();
```

## GetIsPushNotificationEnabled()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is push notification configured and enabled in Netserver.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Bool isPushNotificationEnabled = thing.GetIsPushNotificationEnabled();
```

## GetNotificationsCount()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of new invitations.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer notificationsCount = thing.GetNotificationsCount();
```

## GetOverdueSalesCount()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of overdue sales for current user.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer overdueSalesCount = thing.GetOverdueSalesCount();
```

## GetPhoneLocaleTimeZoneData()

```crmscript theme={null}
NSTimeZoneData GetPhoneLocaleTimeZoneData()
```

**Returns:** [CRMScript.NetServer.NSTimeZoneData](CRMScript.NetServer.NSTimeZoneData)

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData = thing.GetPhoneLocaleTimeZoneData();
```

## GetPocketPreferences()

```crmscript theme={null}
NSPreference[] GetPocketPreferences()
```

**Returns:** [CRMScript.NetServer.NSPreference](CRMScript.NetServer.NSPreference)\[] - All Pocket specific preferences, including WebPanels defined by the user in Pocket.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSPreference[] pocketPreferences = thing.GetPocketPreferences();
```

## GetSystemWebPanels()

```crmscript theme={null}
NSWebPanelEntity[] GetSystemWebPanels()
```

**Returns:** [CRMScript.NetServer.NSWebPanelEntity](CRMScript.NetServer.NSWebPanelEntity)\[] - Web panels defined in Admin client, set to be shown in Pocket client.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels = thing.GetSystemWebPanels();
```

## GetTableRights()

```crmscript theme={null}
Integer[] GetTableRights()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)\[] - List of table rights for logged in user, in the same order as the Tables array parameter. See \<xref href="CRMScript.NetServer.ETableRight" data-throw-if-not-resolved="false">\</xref>.

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer[] tableRights = thing.GetTableRights();
```

## SetBaseLocaleTimeZoneData(NSTimeZoneData)

```crmscript theme={null}
Void SetBaseLocaleTimeZoneData(NSTimeZoneData baseLocaleTimeZoneData)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData;
thing.SetBaseLocaleTimeZoneData(baseLocaleTimeZoneData);
```

## SetCustomData(String)

```crmscript theme={null}
Void SetCustomData(String customData)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
String customData;
thing.SetCustomData(customData);
```

## SetIsPushNotificationEnabled(Bool)

```crmscript theme={null}
Void SetIsPushNotificationEnabled(Bool isPushNotificationEnabled)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Bool isPushNotificationEnabled;
thing.SetIsPushNotificationEnabled(isPushNotificationEnabled);
```

## SetNotificationsCount(Integer)

```crmscript theme={null}
Void SetNotificationsCount(Integer notificationsCount)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer notificationsCount;
thing.SetNotificationsCount(notificationsCount);
```

## SetOverdueSalesCount(Integer)

```crmscript theme={null}
Void SetOverdueSalesCount(Integer overdueSalesCount)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer overdueSalesCount;
thing.SetOverdueSalesCount(overdueSalesCount);
```

## SetPhoneLocaleTimeZoneData(NSTimeZoneData)

```crmscript theme={null}
Void SetPhoneLocaleTimeZoneData(NSTimeZoneData phoneLocaleTimeZoneData)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData;
thing.SetPhoneLocaleTimeZoneData(phoneLocaleTimeZoneData);
```

## SetPocketPreferences(NSPreference\[])

```crmscript theme={null}
Void SetPocketPreferences(NSPreference[] pocketPreferences)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSPreference[] pocketPreferences;
thing.SetPocketPreferences(pocketPreferences);
```

## SetSystemWebPanels(NSWebPanelEntity\[])

```crmscript theme={null}
Void SetSystemWebPanels(NSWebPanelEntity[] systemWebPanels)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels;
thing.SetSystemWebPanels(systemWebPanels);
```

## SetTableRights(Integer\[])

```crmscript theme={null}
Void SetTableRights(Integer[] tableRights)
```

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

**Example:**

```crmscript theme={null}
NSPocketStartupData thing;
Integer[] tableRights;
thing.SetTableRights(tableRights);
```


## Related topics

- [NSPocketAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSPocketAgent.md)
- [Get Pocket Startup Data](/en/api/reference/restful/agent/pocket_agent/get-pocket-startup-data.md)
- [SuperOffice.WebApi.Data.Pocket GetPocketStartupDataRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Pocket_GetPocketStartupDataRequest.md)
- [SuperOffice.WebApi.Data.PocketStartupData](/en/api/reference/webapi/SuperOffice.WebApi.Data.PocketStartupData.md)
- [SuperOffice.WebApi.Agents.PocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.PocketAgent.md)
- [SuperOffice.WebApi.Agents.IPocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IPocketAgent.md)
