Schedule MacroRIS-SM-1017 – ShippingLabelPrintToFTP

Shipping Label Print to FTP

Automatically generate shipping labels in PDF format for eligible orders and upload them to an FTP server for external processing and integration.

Overview

The RIS-SM-1017 – ShippingLabelPrintToFTP macro automates shipping label generation and file transfer.

It filters eligible orders, generates shipping labels, downloads them, and uploads the files to a configured FTP server.

Ensure FTP credentials and identifier configuration are correct before running this macro.

Purpose

This macro:

  • Filters orders using identifiers
  • Generates shipping label PDFs
  • Uploads files to an FTP server
  • Supports automated external integrations

👉 In short:
Generate shipping labels and upload them to FTP automatically.

When It Runs

Used for shipping automation and integrations

Typically runs:

  • Scheduled execution (recommended)
  • Manually triggered

Parameters

path
identifierstring
Required

Order identifiers used to filter eligible orders.

path
FTPSSLboolean
Required

Enable or disable SSL for FTP connection.

path
FTPFilePathstring
Required

FTP folder path where files will be uploaded.

Note:
Only orders matching the provided identifier will be processed.

How It Works

Fetch Open Orders

Retrieve open orders from the last 1 day.

Filter Eligible Orders

Select orders that:

  • Match the provided identifier
  • Do not have labels printed

Generate Labels

Generate shipping labels using:

  • Template: "Shipping Labels"
  • Format: PDF

Download Files

Convert label URLs into file data.

Upload to FTP

Upload files using naming format: OrderNumber.pdf to configured FTP path.

Log Results

Record successful uploads and failures.

Final Result

  • Shipping labels generated in PDF format
  • Files uploaded to FTP server
  • Only eligible orders processed
  • Execution logs available

Usefulness

This macro is highly beneficial for:

  • Automating label generation workflows
  • Reducing manual handling of shipping labels
  • Enabling FTP-based integrations
  • Supporting bulk order processing
  • Improving warehouse efficiency

Important Notes

  • Processes only orders with matching identifiers
  • Does not mark orders as label printed
  • Only processes orders from the last 1 day
  • Generates one PDF per order
  • No retry mechanism for failed uploads

Example Scenario

Key Insight

Combining label generation with FTP upload streamlines warehouse operations and enables seamless integration with external fulfilment and logistics systems.