Schedule MacroRIS-SM-1016 – MarkOrderProcessShippingLabelPrinted

Mark Order Process Shipping Label Printed

Automatically process orders after a defined time interval once their shipping label has been printed, ensuring controlled and accurate workflow execution.

Overview

The RIS-SM-1016 – MarkOrderProcessShippingLabelPrinted macro automates order processing based on shipping label activity.

It monitors when a label is printed and processes the order only after a specified delay, ensuring proper workflow sequencing.

Schedule this macro for best results to maintain continuous and automated order processing.

Purpose

This macro:

  • Detects orders with printed shipping labels
  • Applies a time-based delay
  • Processes eligible orders automatically
  • Ensures workflow accuracy

👉 In short:
Process orders automatically after label printing and a defined delay.

When It Runs

Used for post-shipping automation

Typically runs:

  • Scheduled (recommended)
  • Manually triggered (if required)
  • After shipping label generation

Parameters

path
minutesnumber
Required

Time delay (in minutes) after label printing before processing the order.

Example:
minutes = 30

Meaning:
Orders will be processed 30 minutes after label printing.

How It Works

Fetch Open Orders

Retrieve all open orders from the system.

Filter Eligible Orders

Select orders where:

  • Shipping label is printed
  • No label errors exist

Retrieve Audit Logs

Fetch audit trail data in batches (50 orders per batch).

Identify Label Print Event

Locate audit event: SHIPPING_LABEL_
Extract the label print timestamp.

Validate Time Condition

Calculate time difference:
Current Time − Label Printed Time
If greater than configured minutes → eligible for processing.

Process Orders

Send eligible orders for batch processing and mark them as processed.

Handle Failures

Log any orders that fail during processing.

Final Result

  • Orders processed automatically after delay
  • Only label-printed orders are considered
  • Controlled and accurate workflow execution
  • Failures logged for review

Usefulness

This macro is highly beneficial for:

  • Eliminating manual order processing
  • Ensuring consistent shipping workflows
  • Preventing premature order processing
  • Improving warehouse efficiency
  • Automating post-label operations

Important Notes

  • Works only for orders where LabelPrinted = true
  • Relies on audit event SHIPPING_LABEL_
  • No null check for label print timestamp (may cause errors)
  • Processes all eligible open orders (performance impact possible)
  • Uses batch size of 50 due to API limits

Example Scenario

Key Insight

Combining audit trail tracking with time-based automation ensures orders are processed only when ready, improving accuracy and preventing premature workflow execution.