Export Order

Export orders to external systems using configured order exporter connectors.

Overview

The Export Order step exports order data to external systems (ERP, WMS, etc.) using configured order exporter connectors. This is the primary mechanism for sending order data to backend systems.

Identifier

PropertyValue
KeyExportOrder
GroupExport
Applicable StatusesNew, Completed, ReadyForPickup, Ship

Configuration Properties

PropertyTypeRequiredDefaultDescription
ConnectorStringYes-Name of the order exporter connector
ConnectorIdStringNo-Optional connector identifier for display
StopOnErrorBooleanNofalseCancel workflow if export fails
ErrorStatusStringNo-Status to set on order if export fails
RunAfterOrderIsSavedBooleanNofalseWait for order to be saved before export

Behavior

What It Does

  1. Skips execution in test mode
  2. If RunAfterOrderIsSaved is true:
    • Ensures order is fully saved and available via the API before proceeding
  3. Creates order exporter instance using factory and connector name
  4. Calls Export() on the exporter with order, shipment, and properties
  5. Logs export event to order history
  6. Handles export results:
    • On success: Clears any previous export errors
    • On failure: Sets error status and optionally cancels workflow

Prerequisites

  • Order exporter connector must be configured
  • Connector must support order export operations

Side Effects

  • Order exported to external system
  • Export event logged
  • May set error on order if export fails
  • May change order status on error

Business Cases

When to Use

  • ERP integration: Export orders to ERP systems
  • WMS integration: Send orders to warehouse management
  • Third-party fulfillment: Export to external fulfillment providers

Example Scenarios

Scenario 1: Successful Export Order exported to ERP successfully. Previous errors cleared.

Scenario 2: Export Failure with StopOnError Export fails, StopOnError=true, ErrorStatus=ExportFailed. Order status set to "ExportFailed", workflow cancelled.

Scenario 3: Export Failure without StopOnError Export fails, StopOnError=false. Warning logged, workflow continues.

Scenario 4: Test Mode Running in test mode. Export skipped, success returned.

Error Handling

ConditionResultContinues Workflow?
Test modeSuccess (skipped)Yes
Export successfulSuccessYes
Exporter not foundErrorBased on StopOnError
Export failed (StopOnError=true)ErrorNo
Export failed (StopOnError=false)WarningYes

On this page