# Main Tab

The main CopyStorm/Restore tab is used to manage credentials for Salesforce and the source CopyStorm database.

## Salesforce Connection Parameters

| **Parameter**       | **Description**                                                                                                                                                                                                                                                                                                                                                         |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Instance Type       | <p>Type of Salesforce instance being copied.</p><ul><li>Production</li><li>Sandbox</li><li>Database.com</li></ul><p>This is required when the “Alternate Host” is empty.</p>                                                                                                                                                                                            |
| Username            | A Salesforce user. This user must have API privileges. All data visible to this user will be copied to the CapStorm database.                                                                                                                                                                                                                                           |
| Password            | The password for the Salesforce user.                                                                                                                                                                                                                                                                                                                                   |
| Security Token      | Optional security token supplied by Salesforce.                                                                                                                                                                                                                                                                                                                         |
| Alternate Host      | <p>If your connection to Salesforce does not use one of the standard endpoint (login.salesforce.com or test.salesforce.com) then you must specify your endpoint as an alternate host. If an Alternate Host is not provided, the standard endpoint for the “Instance Type” that is selected will be used.</p><p>Example:</p><ul><li>capstorm.my.salesforce.com</li></ul> |
| Advanced Parameters | Use the Advanced Parameters dialog to set proxy information , timeout limits, and other communication details.                                                                                                                                                                                                                                                          |

## Database Connection Parameters

| **Parameter**             | **Description**                                                                        |
| ------------------------- | -------------------------------------------------------------------------------------- |
| Connection String         | JDBC connection string required to use a CopyStorm database.                           |
| Connection String Builder | Clicking on this button launches a dialog that helps create a valid connection string. |
| Username                  | CopyStorm database username.                                                           |
| Password                  | CopyStorm database password.                                                           |
| Schema                    | Default schema to use. Note that this parameter is not supported by all databases.     |

## Advanced Parameters

| **Parameter**         | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Credential Type       | <p>This indicates how Salesforce credentials are managed. Built-in options include:</p><ul><li>Username And Password (default).</li><li><a href="https://learn.capstorm.com/copystorm/readme/frequently-asked-questions/usage/where-does-copystorm-store-passwords/how-to-login-as-a-connected-application">Oauth 2.0 JWT</a></li><li><a href="https://learn.capstorm.com/copystorm/readme/frequently-asked-questions/usage/where-does-copystorm-store-passwords/how-to-login-to-salesforce-using-sfdx">SFDX Username or Alias</a></li><li>One-Time Password Authenticator</li></ul><p>Changing this parameter will cause the GUI for the Salesforce credentials to adapt.</p> |
| Salesforce Batch Size | Maximum number of records to read from Salesforce in a single API call. The default, 2000, should rarely be changed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Max Timeout           | Maximum number of seconds to wait for a response from Salesforce. This should rarely be changed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Describe Batch Size   | Number of table definitions to read from Salesforce in a single batch. This should rarely be changed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Apache/HttpClient     | If checked then Apache’s HttpClient will be used to communicate with Salesforce rather than the default client built into the library. This option should not be checked when the standard library works.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Use Describe Cache    | If checked then Salesforce table definitions will be kept in a disk cache rather than in memory. This should rarely be checked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Proxy Host            | Optional name or IP address of a proxy host. Leave this blank if a proxy is not being used.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Proxy Port            | Optional port on which a proxy server is listening.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Proxy User            | Optional username when required by a proxy server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Proxy Password        | Optional password when required by a proxy server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Screenshot

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-0f9d28192bb9e420ce3021096a2490ab37f834f3%2F86769a62-MainTabPicture1.png?alt=media)

After entering parameters for a connection, a “Test Connection” button will become enabled and can be used to validate the credentials.

![](https://2924009365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5FyPmqVkPxhj2oT8fbgB%2Fuploads%2Fgit-blob-8c8945a99eb9a9537a02cb8cc2c92f37ac41b451%2F43b41e88-AdvancedParameters.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/copystorm-restore/reference/main-tab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
