Sync PostgreSQL rows to Salesforce opportunities
DatabaseCRMMarketing
What it does
When a new or updated row appears in a PostgreSQL table, this automation upserts the opportunity record in Salesforce so both systems stay in sync. The opportunity is created if it does not exist, or updated if it does.
Who it's for
Sales operations teams who manage opportunities across PostgreSQL and Salesforce.
Apps used
How teams use this
Keep opportunities synced across systems
New opportunities created in PostgreSQL automatically appear in Salesforce, and updates to either system flow to the other. Sales teams see current data without manual entry.
Prevent duplicate opportunity records
The upsert logic matches existing opportunities so the same deal is never created twice across PostgreSQL and Salesforce, keeping the record count accurate.
Add custom field mapping to the sync
Include additional PostgreSQL columns in the upsert so custom Salesforce fields are populated when the opportunity syncs. Only the field list needs to change.
How it works
- Monitor the PostgreSQL table. Watch the public.Opportunity_with_auto table in PostgreSQL for new rows or changes to existing rows.
- Upsert the opportunity in Salesforce. Upsert the opportunity record in Salesforce so it is created if it does not exist or updated if it does, keeping both systems aligned.