Skip to content

Create sales order in ERP from closed opportunity

Automatically detect Opportunity stage changes to an ordered state across Salesforce and ERP tools. Create sales orders when an opportunity is orderedβ€”so you can post structured order data, generate a PDF, and attach order results back to the originating record without manual order entry.

How this automation creates ERP sales orders from CRM deals

When an opportunity reaches the ordered stage, delays in order creation can stall fulfillment and invoicing. This automation finds account details, transforms line items, posts the sales order to your ERP, and updates Salesforce with the order ID and attached PDFβ€”so your team can move faster.

  1. 1.Detects ordered stage opportunity

    Integrate Salesforce to watch for Opportunity stage changes to an ordered state and start order creation from CRM context.

    Salesforceor swap with your favorite app
  2. 2.Pulls account and opportunity fields

    Integrate Salesforce to find the related Account by Account ID and map billing and shipping blocks to address objects.

    Salesforceor swap with your favorite app
  3. 3.Retrieves ERP token and defaults

    Integrate Zapier Tables to look up the stored ERP API token row and apply configured warehouse and location defaults.

    Zapier Tablesor swap with your favorite app
  4. 4.Transforms line items to ERP lines

    Integrate Code by Zapier to convert Opportunity line items into ERP line format and calculate unit prices, amounts, and discounts.

    Code by Zapieror swap with your favorite app
  5. 5.Posts sales order JSON to ERP

    Integrate Webhooks by Zapier to post assembled sales order JSON to the ERP endpoint using the retrieved Authorization header.

    Webhooks by Zapieror swap with your favorite app
  6. 6.Updates order ID and attaches PDF

    Integrate Salesforce to update the Opportunity with the created order ID and attach the returned sales order PDF to the record.

    Salesforceor swap with your favorite app

Automate your work, your way

Build custom automations across your tools in minutes. Describe what you need, connect your apps, and create workflows without the manual effort.

Trusted by 3.4 million companies

Calendly
Okta
Zendesk
Dropbox
Asana
Allstate
Airbnb
ActiveCampaign
Lyft
Webflow
Canva
Sysco
LA Clippers
Getaround
Grammarly
HelloFresh
Lululemon
Barry's
Hopper
Casper
Hudl
Miro
The New York Times
Ruggable
Calendly
Okta
Zendesk
Dropbox
Asana
Allstate
Airbnb
ActiveCampaign
Lyft
Webflow
Canva
Sysco
LA Clippers
Getaround
Grammarly
HelloFresh
Lululemon
Barry's
Hopper
Casper
Hudl
Miro
The New York Times
Ruggable

Related automations

  • Apps: Sub-Zap by Zapier, Zapier Tables, Formatter by Zapier, Webhooks by Zapier
    Swap with your favorite apps.

    Add configured product lines and update order quantities

    Your order entries lack product line structure, causing incorrect invoices and manual fixes. Get product lines and quantities posted automatically so invoices are accurate before the next billing run.

  • Apps: Webhooks by Zapier, Formatter by Zapier, Delay by Zapier, Salesforce
    Swap with your favorite apps.

    Add dinner upsell line item to customer orders

    Your event ticket orders miss optional dinner items, causing undercharged invoices and manual reconciliation. Add upsell line items so invoices and fulfillment are correct same day.

  • Apps: Shopify, Formatter by Zapier, Filter by Zapier, Google Sheets
    Swap with your favorite apps.

    Add each paid order to sales ledger sheet

    Paid online orders with messy item or address data leave sales ops and fulfillment unable to reconcile or pick. It logs cleaned order rows into a central sheet for same-day reconciliation.

  • Apps: ThriveCart, Filter by Zapier, Formatter by Zapier, Google Sheets
    Swap with your favorite apps.

    Add new cart purchases to sales tracking sheet

    Your product purchases land untracked, causing fulfillment delays and reconciliation gaps. Keep orders and customer details organized for same-day processing and faster reconciliation.

  • Apps: SpreadSimple, Google Sheets, Webhooks by Zapier
    Swap with your favorite apps.

    Add new storefront orders to central ledger sheet

    Your storefront orders arrive without a central ledger, creating reconciliation gaps and slow fulfillment for your retail business. This records each new order into a single sheet so finance and ops reconcile and act the same day.

  • Apps: Sub-Zap by Zapier, Zapier Tables, Formatter by Zapier, Webhooks by Zapier
    Swap with your favorite apps.

    Add order product lines to accounting sales orders

    You get accessory and print selections lacking coded product IDs, which delays order completion and billing. It adds coded lines to the sales order so billing staff can invoice on schedule.

  • Apps: Sub-Zap by Zapier, Zapier Tables, Formatter by Zapier, Storage by Zapier, Webhooks by Zapier
    Swap with your favorite apps.

    Add product lines to sales orders from model forms

    Your production model forms require manual mapping into sales orders, creating delays and billing friction. Get mapped product lines added to the sales order automatically so orders ship same day.

  • Apps: Sub-Zap by Zapier, Zapier Tables, Formatter by Zapier, Storage by Zapier, Webhooks by Zapier
    Swap with your favorite apps.

    Add product lines to sales orders from order entries

    Your order entries miss mapped product codes and quantities, forcing billing to edit sales orders and delaying invoices. Get populated sales-order lines automatically so invoices are ready same day.

  • Apps: HubSpot, Delay by Zapier, Google Sheets
    Swap with your favorite apps.

    Add renewed deals to order tracker for provisioning

    Deals entering the configured order confirmation stage lack clear handoff, causing provisioning delays. It adds standardized order rows so teams can provision and notify customers same day.

  • Apps: NetSuite, Airtable
    Swap with your favorite apps.

    Add sales order amount and project number to tracker

    Your sales orders lack project links, leaving billing and project teams without order context. Add order totals and project IDs to your tracker so teams reconcile and bill before the next billing run.

  • Apps: Sub-Zap by Zapier, NetSuite, Filter by Zapier
    Swap with your favorite apps.

    Add shipping line to sales order record automatically

    Your sales orders can miss shipping lines when rates arrive per item, leaving totals incorrect and fulfillment stalled. That ensures billing and fulfillment can act same day.

  • Apps: SignNow, Filter by Zapier, Delay by Zapier, Zoho CRM
    Swap with your favorite apps.

    Attach updated order PDFs to sales records and flag

    Order PDFs sit outside the sales order, leaving marketing teams without document context for welcome outreach. This links the PDF to the order so teams can send the welcome message same day.

  • Explore all sales order processing automations

    Accelerate order fulfillment with automated order capture, status routing, and record updates

    View all

Set up in minutes

Zapier connects your tools, triggers actions from real-time data, and streamlines workflows so your team can focus on what matters most.

  1. Step 1

    Connect your tools

    Bring your apps together so information can move automatically between the tools your team already uses.

  2. Step 2

    Define the trigger

    Choose the events that should start your workflow, like a new submission, updated record, completed task, or customer action.

  3. Step 3

    Automate and measure

    Let your workflow handle follow-ups, updates, notifications, and reporting so your team can track progress and act faster.

See how teams are automating with Zapier (and loving it!)

Smart Charge America

Without Zapier, we would have needed well over 100 employees today just to do what we're doing. We would have been out of business by now.

David Laderberg, VP of Sales

Remote

Without having automation, we would have to at least be double our size. Doubling is a bit of a euphemism β€” I think we would have died or fallen back into oblivion.

Marcelo Lebre, Co-Founder

SweepBright

Zapier helps us close far above 50% more deals than we would without it. It is a key element of our overall strategy and, therefore, of our sales pitch.

Raphael Bochner, Founder and CIO

Digioh

Zapier gives us unlimited flexibility and creativity. With Zapier, you're like an artist with a blank canvas. I don't know what we'd do without it.

Rishi Shah, CEO and Co-Founder

Otter.ai

We don't just want to patch holes; we want to build scalable, future-proof systems. Zapier is helping us do that.

Allen Lai, Head of Customer Experience

Superhuman

We've been able to scale our operations while staying lean. Zapier lets us do more without needing more people.

Jacob Sirrs, Marketing Operations Specialist

Ready to automate your workflow securely?

Streamline processes, uncover new opportunities, and respond faster to change. Empower your team to get more done, without the manual work.