Create Sunnybrook shipment from function call

Recipe ToolsData ParserMarketingUtilitiesDeveloper ToolAPI Integration

What it does

When someone calls this automation via function, it parses shipment data and maps it to Sunnybrook's schema. The system then sends the shipment record to the endpoint and logs the result.

Who it's for

Operations teams who need to create Sunnybrook shipments from external systems in real time.

How teams use this

Create shipments from order management

When an order is confirmed in the order system, call this automation to create the shipment in Sunnybrook without manual entry. The mapping handles all field translation automatically.

Route shipments to different systems

Reuse this automation for other shipment management platforms by swapping the endpoint and schema. The parsing and mapping steps stay the same.

Add validation before sending

Include a condition to check that freight rate and stop-off count meet requirements before the shipment is sent to Sunnybrook. Only valid records proceed.

How it works

  1. Receive the function call. A function call arrives with shipment details including stop-off information and freight rate data.
  2. Parse the shipment data. Json Parser extracts the S5_LOOP object and stop-off details from the incoming data so they can be processed.
  3. Transform stop-off details. Py Eval runs Python code to convert stop-off details into the format Sunnybrook shipment management expects.
  4. Map to Sunnybrook schema. Workato Mapper uses the common data model to map all fields to the Sunnybrook shipment schema, including freight rate.
  5. Send the shipment record. Rest Secondary posts the mapped shipment to the Sunnybrook endpoint and logs the response to the job report.