Schedule MacroRIS-SM-1005 – CNC Shipping Label Generate in FTP

CNC Shipping Label Generate in FTP

Automatically generate shipping labels and upload them to an FTP server for eligible orders.

Overview

The RIS-SM-1005 – CNC Shipping Label Generate in FTP macro automates the generation of shipping labels and uploads them to an FTP server.

It filters eligible orders, generates label PDFs, and securely transfers them to a specified FTP location for further processing or integration.

Ensure FTP credentials and print templates are properly configured before running this macro.

Purpose

This macro:

  • Identifies eligible orders based on identifiers

  • Generates shipping label PDFs

  • Uploads label files to FTP server

👉 In short:
Automatically generate shipping labels and upload them to FTP.

When It Runs

Used for label automation & external system integration

Typically runs:

  • Manually triggered

  • Scheduled execution (e.g., daily automation)

Parameters

path
identifierstring
Required

Order identifiers used to filter eligible orders (comma-separated).

Example:
identifier = ReadyToShip, Processed

Meaning:
Only orders containing these identifiers will be processed.

How It Works

Fetch Orders

Retrieve open orders created within the last 24 hours.

Filter Orders

Select orders matching the provided identifiers.

Exclude Processed Orders

Skip orders where labels have already been generated.

Generate Labels

Create shipping label PDFs using configured print templates.

Convert to File

Convert generated labels into byte/file format.

Upload to FTP

Upload label file using order number as filename.

Log Results

Record success or failure of each operation.

Final Result

  • Shipping labels generated automatically

  • Files uploaded to FTP server

  • Only valid and unprocessed orders handled

Usefulness

This macro is highly beneficial for:

  • Automating label generation

  • Centralising label storage

  • Reducing manual effort

  • Supporting external system integrations

Important Notes

  • Processes only orders from the last 24 hours

  • Filters based on provided identifiers

  • Skips already processed orders

  • Requires valid FTP configuration

  • Upload failures are logged for review

Example Scenario

Key Insight

Automating label generation and FTP uploads ensures faster fulfilment, reduces manual effort, and enables seamless integration with external systems.