Sync data from PostgreSQL to Salesforce
Activate your PostgreSQL data by syncing it directly into Salesforce. With Weld's reverse ETL, you can push modelled data such as audience segments, lead scores and account metrics from your database into Salesforce, making it actionable for your team without manual exports or CSV uploads.
Your own tables, picked when you set up the sync.
- Model
- Map fields
- Upsert
- salesforce.Synced
- salesforce.Syncing
- salesforce.Synced
- salesforce.Synced
Trusted by data and AI teams
How to set up PostgreSQL to Salesforce in Weld.
Guided setup in 5 steps.
- Step 01
Connect your database
Add PostgreSQL as a data source in Weld with connection credentials that grant read access. Credentials are stored encrypted and never logged.
- Step 02
Define your transformation
Write a SQL query or dbt model that selects and transforms the data you want to push to Salesforce. This is where you build audience segments, compute lead scores, aggregate metrics, or reshape data into the structure Salesforce expects. You can preview results before activating.
- Step 03
Connect Salesforce
Authenticate Salesforce as a reverse ETL destination. Weld supports OAuth or API key authentication depending on the connector. Once connected, Weld automatically discovers the available objects and fields in Salesforce.
- Step 04
Map fields and configure sync
Map your SQL columns to Salesforce fields using Weld's visual mapper. Choose a sync mode: insert to create new records, update to modify existing ones, or upsert to do both. Then set a schedule from every 5 minutes to daily.
- Step 05
Activate and monitor
Enable the sync and monitor it from the Weld dashboard. Track record counts, sync duration, and error rates in real time. Configure Slack or email alerts so you're notified immediately if a sync fails or encounters data quality issues.
Why sync PostgreSQL to Salesforce?
Act on warehouse data.
Combine PostgreSQL data with other customer touchpoints to build a unified customer view across sales, marketing, and support.
Push enriched segments and computed attributes from PostgreSQL into Salesforce to power personalized outreach and targeted campaigns.
Keep Salesforce updated with the latest data from PostgreSQL to automate workflows and reduce manual data entry.
Enrich CRM records
Push computed lead scores, lifetime value, or product usage metrics from PostgreSQL into Salesforce so sales teams have context without switching tools.
Sync customer segments
Automatically update Salesforce lists and tags based on warehouse-computed segments, ensuring your sales and success teams target the right accounts.
Operationalize analytics
Turn insights from your database into action by pushing model outputs and metrics into Salesforce where your team works.
What data can you sync?
From PostgreSQL to Salesforce.
Model the data in PostgreSQL with SQL or dbt, then map it to objects in Salesforce such as these. Which objects you can write to depends on the Salesforce connector and your account permissions.
- Accounts
- Contacts
- Leads
- Opportunities
- Campaigns
- Tasks
- Cases
- Users
Technical considerations.
What to expect.
ELT vs. reverse ETL: PostgreSQL and Salesforce
ELT (Extract, Load, Transform) moves data from Salesforce into PostgreSQL for analytics. It's about centralizing data in your warehouse so analysts can query and join it with other sources.
Reverse ETL does the opposite. It takes data that's already in PostgreSQL and pushes it into Salesforce so operational teams can act on it. This is the approach used on this page.
Many teams use both: ELT to centralize data in the warehouse, and reverse ETL to activate that data back in business tools. Weld supports both directions between PostgreSQL and Salesforce.
Salesforce to PostgreSQL- Sync modes
- Choose between insert, update, or upsert sync modes when pushing data to Salesforce. Upsert is recommended to avoid duplicates.
- Rate limits
- Weld respects Salesforce's API rate limits and automatically throttles requests to avoid hitting quotas.
- Data freshness
- Sync frequency depends on your Weld plan. Most connectors support schedules from every 5 minutes up to daily intervals.
- Security
- All data is encrypted in transit (TLS) and at rest. Weld is SOC 2 Type II compliant and supports IP whitelisting for database connections.
Keep reading.
Guides, docs and schema.
Common questions.
About PostgreSQL to Salesforce.
Start syncing PostgreSQL data to Salesforce.
Set up your reverse ETL pipeline in minutes. No credit card required. Free for 14 days.