# Connecting to Salesforce – Legacy Database

Salesforce - Legacy is an acclaimed customer relationship management (CRM) platform used by enterprises across the globe. Astera offers in-built connectivity to Salesforce - Legacy databases at both source and destination points.&#x20;

The connectivity also extends to other objects such as *Database Lookup, SQL Statement Lookup* in Transformations, *SQL Script Task* in a Workflow, *Database Diff Processor* and *Slowly Changing Dimensions* in Database Write Strategies.

In this article, we will learn to configure Salesforce - Legacy as a data provider in Astera. We will be using the [*Database Table Source*](/dataflows/sources/database-table-source.md) object to establish the connection with the Salesforce - Legacy database.

1. To configure the properties of a *Database* source, right-click on the object’s header and select *Properties.*

![](/files/yiABdxANVrjFzH8aoFbd)

2. This will open a new *Database Connection* window where you need to provide details to configure a connection with the database.

![](/files/ucoMDyCrIFaCkrqgIwqC)

3. On the *Database Connection* window, select *Salesforce - Legacy* from the from the *Data Providers* drop-down list.

![](/files/iKvqd1MWIEzZmKyfOYho)

4. Provide the credentials to your Salesforce - Legacy account.

![](/files/4Py8cSQrdPClG2I5QZhg)

There are following options available for Salesforce - Legacy settings:

*Retrieve deleted items* - Includes items that were previously deleted.

*Connect to sandbox* - Creates a new connection to Sandbox completely isolated from your actual Salesforce - Legacy account.

5. *Test Connection* to make sure that your connection has been established with Salesforce - Legacy database. When the connection is established, click *Next*.

![](/files/JtMGemcB5BrbGhOZX79f)

The connection to Salesforce - Legacy database has been established successfully. You can now pick a table from Salesforce - Legacy database and use the data in your dataflow. To learn more about how to pick a table from a database source and specify other reading options, click [here](/dataflows/sources/database-table-source.md).

This concludes connecting to Salesforce - Legacy database in Astera.


---

# 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://documentation.astera.com/connectors/connecting-to-salesforce-legacy-database.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.
