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

# Pocket CRM configuration

> Pocket CRM config

## Recommended configuration

* Upgrade to SuperOffice 8 > Automatically update clients [from Pocket Server to NetServer][6]
* Setting up an email account for the client
* Add a template for incoming images (jpeg)
* Add a follow-up type for SMS

## Enable logging

Enable logging in the *web.config* file as for CRM Web in the [Diagnostics section][8].

```xml theme={null}
<add key="LogToFile" value="true" />
```

## NetServer configuration - GSM formatted phone numbers

When initiating phone calls from Pocket CRM the numbers must be formatted in a way that the phone can use. SuperOffice NetServer has the functionality to return all phone numbers from the SuperOffice database in a clean formatted way, without spaces, commas, and including country prefix, like this: +4712345678.

To enable this feature in NetServer make sure that the [Globalization section][10] in *web.config* contains this element:

```xml theme={null}
<add key="AllwaysUseGsmPhoneStyle" value="True" />
```

## Client configuration - Setting up an email account

To use and be able to send an email within Pocket CRM, an email account needs to be configured. This configuration needs to be performed in the SuperOffice 8.x Web client.

## Admin configuration - Add a Template for incoming images (jpeg)

Open SuperOffice Admin client and select Lists section > Lists tab > double click **Template** and select **+ Add** bottom of the **Lists items**. Add this List item where the file name has extension **.jpg**. The file may be empty, we use the extension to look up the correct template when a new file is saved.

## Admin configuration - Add a Follow-up type for SMS

Open SuperOffice Admin client and select Lists section > Lists tab > double click **Type (Follow-up)** and select **+ Add** bottom of the **Lists items**. [Add this List item][2] SMS as type **Appointment** and direction **Outgoing**.

## Data caching

Pocket saves data that is accessed in a local SQLite database. This is for all data that is shown in the Pocket application, except documents.

Data that the user does not have access to is not saved. The data is initially saved forever but is periodically updated when accessed again.

All local data is erased if Pocket is reconfigured to a new installation, or if a new user logs in.

Both iOS and Android have default support for encrypting all content if a pin code or password is used to lock the device.

[www.apple.com/business/docs/iOS\_Security\_Guide.pdf][3]
[source.android.com/security/encryption/full-disk][4]

## Expose NetServer to internet

To connect Pocket CRM to NetServer's web services, NetServer needs to be accessible from the internet. If you have a [setup with remote NetServer on an internal network and SuperOffice Web in DMZ][5], that means only web server part is available on the internet.

A solution is to use [Reverse proxy][7] to make also NetServer available on the internet.

Installing a second NetServer in DMZ and connecting it via web services to the remote NetServer on internal LAN is not supported. The NetServer in DMZ will demand direct access to so\_arc and Pocket CRM using this setup will fail to save pictures and documents.

## Custom Pocket configuration URL

If you want to change the default Pocket CRM configuration URL, you can do so by setting a configuration value of SuperOffice Web in the *web.config* file.

The key name is **PocketCrmServiceUrl** and the value is the new URL for Pocket connection. You'll find this in the [\<SoFormsAuthentication>\<Pages>][9] section.

Example:

```xml theme={null}
<add key="PocketCrmServiceUrl" value="[http://pocket.customer.com/](http://pocket.superoffice.com/NetserverPocket/remote/Services88)" />
```

<Note>
  The template files we use to generate the email with Pocket configuration sent to users use two template variables:
</Note>

* `{pccu}` variable always points to *\<CRM.web installation>\PocketConfiguration.aspx* and is not configurable.
  The reason this is not a direct configuration link for the Pocket client (soprotocol scheme), is that a lot of users experienced problems on Android, where mail clients did not handle the custom protocol link correctly
  The custom protocol redirect/configuration URL that PocketConfiguration.aspx uses, is attempted retrieved from CRM.web installation *web.config*.

* `{pcvu}` variable is used as the display name for the Pocket configuration URL.

[2]: ../../admin/lists/add-items

[3]: https://www.apple.com/business/docs/iOS_Security_Guide.pdf

[4]: https://source.android.com/security/encryption/full-disk

[5]: ../security/deployment-scenarios

[6]: ./upgrade-to-8

[7]: ../install/iis/reverse-proxy

[8]: ../web-config/diagnostics

[9]: ../web-config/soformsauthentication

[10]: ../web-config/globalization


## Related topics

- [Pocket CRM 9.1.6 update](/release-notes/pocket-crm/9.1.6-update.md)
- [System requirements for Pocket CRM - Onsite](/en/onsite/pocket-crm/system-requirements.md)
- [Requirements for Pocket CRM mobile client](/en/onsite/pocket-crm/client-requirements.md)
- [How to install and configure the CRM Pocket client](/en/onsite/pocket-crm/install.md)
- [Pocket template variables](/en/document/templates/variables/for-pocket.md)
- [Application configuration](/en/developer-portal/create-app/config/app-config.md)
