Sync Oracle shipment types via callable workflow

Recipe ToolsDatabase

What it does

When someone calls the Get Shipment Type workflow, this automation runs a custom SQL query in Oracle to retrieve shipment types. It returns the results in a batch so the calling workflow has the data it needs.

Who it's for

Data and analytics teams who need to retrieve Oracle shipment data from other workflows without building duplicate queries.

How teams use this

Reuse shipment type logic across workflows

Build the shipment type query once in this callable workflow, then call it from multiple other workflows. Teams avoid duplicating the same SQL query and keep the logic in one place.

Enrich purchase order records with shipment data

Call this workflow from a procurement automation to add shipment type details to each PO before syncing to a downstream system. The enrichment happens in batch without slowing down the main flow.

Filter results by shipment type status

Extend the SQL query to only return shipment types that match a specific status or condition, such as active or pending shipments. Add a filter clause to the custom SQL so callers get pre-filtered results.

How it works

  1. Receive the Get Shipment Type call. Another workflow calls the Get Shipment Type callable workflow and passes a list of purchase order IDs to retrieve shipment types for.
  2. Query Oracle for each purchase order. Run a custom SQL query in Oracle to fetch the shipment type for each po_headers_id in the list, processing them in a batch.
  3. Return the shipment type results. Send the list of shipment type results back to the calling workflow so it can use the data in its next steps.