Schedule MacroRIS-SM-2019 – PackagingSelectionByLocation

Packaging Selection by Location

Automatically assign packaging groups and types to orders based on fulfilment location, ensuring consistent and efficient warehouse operations.

Overview

The RIS-SM-2019 – PackagingSelectionByLocation macro automates packaging assignment by mapping fulfilment locations to predefined packaging configurations. It ensures that each order is assigned the correct packaging group and type based on where it will be fulfilled.

Ensure packaging groups and location mappings are properly configured in Linnworks before running this macro.

Purpose

This macro:

  • Identifies fulfilment location of orders
  • Assigns packaging group and type
  • Applies dimensions and weight
  • Triggers further automation via Rules Engine

👉 In short: Assign correct packaging based on fulfilment location.

When It Runs

Used for packaging automation and fulfilment optimization.

Typically runs:

  • Scheduled execution (recommended)
  • Manually triggered
  • Before packing or shipping stage

Parameters

path
OrderIdsstring

List of order IDs to process. Optional—if not provided, the macro processes all open orders from predefined fulfilment locations.

Note:

  • No manual configuration required
  • Packaging logic is fully automated based on system data
  • Predefined fulfilment locations used: Germany FC, Oregon FC, Australia FC, Canada FC, X-Sailfish PDX

How It Works

Identify Locations

Filter orders belonging to predefined fulfilment centers.

Fetch Configurations

Retrieve packaging groups and match them with stock locations.

Retrieve Open Orders

Fetch open orders for each location and exclude already processed ones.

Get Packaging Data

Retrieve weight and dimension data required for packaging calculation.

Assign Packaging

Map location to packaging group and assign default packaging type.

Apply Packaging Settings

Set:

  • Packaging group
  • Packaging type
  • Dimensions
  • Weight
  • Auto split enabled

Track Processed Orders

Maintain list of processed orders to avoid duplication.

Assign Identifier

Add identifier "Packaging Macro Triggered" to processed orders.

Execute Rules Engine

Trigger additional automation rules if configured.

Final Result

  • Packaging assigned based on fulfilment location
  • Dimensions and weight applied automatically
  • Orders marked as processed
  • Additional automation rules executed

Usefulness

This macro is highly beneficial for:

  • Automating packaging selection
  • Ensuring consistency across warehouses
  • Reducing manual errors
  • Improving fulfilment speed
  • Supporting scalable warehouse operations

Important Notes

  • Works only for predefined locations
  • Packaging groups must exist in the system
  • Uses default packaging type (no advanced logic)
  • Orders with identifier are skipped
  • Rules engine execution depends on configuration
  • Texas FC is handled but not included in initial filter

Example Scenario

Key Insight

Mapping fulfilment locations to packaging rules standardizes operations, reduces manual effort, and enables efficient scaling across multiple warehouses.