# Create a Sync between Supabase Postgres and Salesforce

<figure><img src="/files/ET1CLvWUnIQXGbVoQIXh" alt=""><figcaption></figcaption></figure>

#### Go to [www.stacksync.com](https://app.stacksync.com)

#### 1. Sign in or create your account

<figure><img src="/files/4pLjJij8YDdidgLixeAH" alt=""><figcaption></figcaption></figure>

#### 2. Click "Create a New Sync"

<figure><img src="/files/dqbOMm5bl7uXQWDAbu9E" alt=""><figcaption></figcaption></figure>

#### 3. Select "Postgres" to connect this app

<figure><img src="/files/0olM4voKxSLfB0l7H1C1" alt=""><figcaption></figcaption></figure>

#### 4. Paste your database 'Connection String' or manually fill in the connection credentials

<figure><img src="/files/RYt14UNf91MgJk90NwCE" alt=""><figcaption></figcaption></figure>

#### 5. Click "Authorize App"

<figure><img src="/files/NDWRBOQ4ncVSGiYQz8LH" alt=""><figcaption></figcaption></figure>

#### 6. Click on the Salesforce icon to connect this app

<figure><img src="/files/SbmvDI9HbivhUJXnW2oq" alt=""><figcaption></figcaption></figure>

#### 7. Fill in your credentials and click "Log In"

<figure><img src="/files/wQgb46EjEz6AyPexYPOx" alt=""><figcaption></figcaption></figure>

#### 8. Click " Allow "

#### 9. Click "Link Tables"

<figure><img src="/files/W2ppndK1CDoxJgTz31Dd" alt=""><figcaption></figcaption></figure>

#### 10. Click "Create New Table (Recommended)" or map existing tables as you prefer

Stacksync lets you map existing tables if both apps you want to connect already contain tables with the data you want to keep in sync (there’s no need for either to be empty). Alternatively, Stacksync can automatically create new tables for you if only one of your apps contains a table or schema with the data you want to sync.

In most cases, people will let Stacksync create tables as the new schemas created will always be pixel-perfect 😉.

<figure><img src="/files/g9FfsSftEufxOQCNgP30" alt=""><figcaption></figcaption></figure>

#### 11. Click "Map Fields"

<figure><img src="/files/yFW0fDdYEE2OoA2hjsdT" alt=""><figcaption></figcaption></figure>

#### 12. Click "Show More Columns" to review all the fields to be synced or select/unselect them

Now that you've mapped the tables, let's do the same for each of the fields you want to sync.

Stacksync will cleverly auto-map your columns. Some columns might need to be mapped manually if their names or meanings can’t be matched automatically.

Feel free to map, select, and unselect columns as you like.

<figure><img src="/files/FYaoclnRySAZUHa1v6QI" alt=""><figcaption></figcaption></figure>

#### 13. Click "Create Base"

<figure><img src="/files/aEwFHH8KK5HQUHQCIGbJ" alt=""><figcaption></figcaption></figure>

#### 14. Switch on the sync

<figure><img src="/files/Hs519SoKdyHqfQSPoYi8" alt=""><figcaption></figcaption></figure>

#### 15. Your data is syncing!

<figure><img src="/files/JlKhAqKa56AV48lrpQtY" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
After turning the sync on, you can check the Issues page to view any sync errors from your connected apps. This can help you troubleshoot why some data isn’t appearing in one of your apps.
{% endhint %}

## Yay! Your data is syncing! 🥳&#x20;


---

# 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://docs.stacksync.com/two-way-sync/guides/two-way-sync-salesforce-and-postgres/create-a-sync-between-supabase-postgres-and-salesforce.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.
