Overview
This article will guide you on how to create a UPS label using WinSQL. The script in this article is only for UPS and no other carriers. The query will return a ZPL code that you can copy/paste on the Labelary.com website to create the actual label.
Requirements
- Admin access to the GlobalShip server.
- Basic knowledge of SQL and using WinSQL client.
- The order number or package ID.
Procedure
Get the Package ID Using WinSQL
- Launch WinSQL.
-
Run the query below to return the shipment's data.
select * from archive.package_details where reference_number_1 like '%replace_with_order_number%' - In the result, copy the value from the first column named package_id.
-
Run the query below to generate the ZPL for the UPS label.
--replace with Package_Id Call app.init_session(); Call app.get_label('replace_with_package_id','ARCHIVE','CARRIERLABEL'); select value from session.label_output; -
Double click on the magnifying glass to expand the result.
- Copy the ZPL code.
- Go to Labelary.com.
- Past the ZPL code in the text box on Labelary.
-
Click the Redraw button to create the label.
- Click the PNG or PDF button to save the file.
-
Assistance
If any further assistance is needed, please contact our Support team.