show-up to Salesforce opportunity
<- back to stuff i built
revenue operations

show-up to Salesforce opportunity

A cron pipeline that turns completed demos into correctly owned Salesforce Opportunities.

tldr

A conservative Postgres-to-Salesforce conversion pipeline that turns show-ups into correctly matched and owned opportunities.

the problem

A prospect showing up is a meaningful sales event, but the handoff into Salesforce can fail when records are converted, duplicated, missing, or owned by the wrong person.

what it is

A cron pipeline that turns completed demos into correctly owned Salesforce Opportunities.

why it is useful

It closes the operational gap between a prospect showing up and that prospect becoming visible as a deal to the sales team.

architecture

Python scripts query Postgres for show-ups, maintain an idempotent audit log, and run a Salesforce conversion ladder through REST and SOAP. A conservative frequent job avoids races with upstream syncs; an end-of-day retry uses broader matching and can create missing Leads.

how it works

  1. A frequent job queries newly completed demos and checks the audit log.
  2. The pipeline attempts matching in a safe order: converted Leads, unconverted Leads, then Contacts with open Opportunities.
  3. When required, it uses Salesforce SOAP conversion and resolves the correct AE from booking ownership.
  4. An end-of-day sweep retries errors and handles records that were not available during the first pass.

implementation notes

  • Handles converted Leads, unconverted Leads, Contacts with open Opportunities, and missing Salesforce records.
  • Assigns new Opportunities to the AE from the booking when the owner can be resolved safely.
  • Builds and parses the SOAP convertLead request without a Salesforce SDK.
  • Logs every outcome and retries errors or missing records in the end-of-day sweep.

engineering decisions

  • Uses a conversion ladder instead of assuming every prospect has the same Salesforce record shape.
  • Makes every outcome auditable and retryable.
  • Prefers a conservative frequent job plus a broader retry over one aggressive job that could create duplicates.

stack

PythonPostgresSalesforce REST APISalesforce SOAP APISlackRailway cron