Integration»Starter Script-LTL

Starter Script-LTL

Create a Starter Ship Script for LTL

The basic shipping script will be created in your system and will set values in the ShipManager file for a new LTL shipment.

Create a new script and call it "Set Ship Data LTL". Using the Set Field script step, you will need to set a value in the following fields of the ShipManager table:

# Set recipient information
ShipTo_Name (This field should always have a value, either the company name or the recipient name)
ShipTo_AttentionName (Set this field if you have a company name and a contact. Some Intl may require a ShipTo_AttentionName value even if set in ShipTo_Name)
ShipTo_AddressLine1
ShipTo_AddressLine2
ShipTo_AddressLine3
ShipTo_City
ShipTo_StateProvinceCode
ShipTo_PostalCode
ShipTo_Country
ShipTo_PhoneNumber
ShipTo_EmailAddress

# Set carrier information
Carrier [LTL]
Service [leave blank or set carrier name if using Manual Freight]

# Set reference fields
Ref_InvoiceNumber
Ref_PONmber
Ref_CustomerReference

# Set Pickup Date and Time
LabelDate [expected pick up date]
Freight_TimeAfter[time 00:00 format]
Freight_TimeBefore[time 00:00 format]
Freight_SpecialServices.t[Life gate options, etc.]

# Set user fields to store optional data
UserField_OrderDate
UserField_Source
UserField_URL
UserField01...UserField02

[commit record]

Next, if you know freight shipment details, you can pre-populate the data for the shipper by setting values in ShipManager_Packages

# Set Shipment Detail information in ShipManager_Packages
Freight_Packaging.t
ProductDesc.t Weight.n
Width.n
Length.n
Height.n
Value.n
Freight_Pieces.n
Freight_Cartons.n
Freight_Class.n
Freight_NMFC.t
Freight_Hazmat.t
Freight_Stackable.t


[commit record]

# Optional
Perform External Script "External - Show" in ShipManager file (With a script parameter of the related ShipManager ID)

Once the ShipManager record is created, you can pass the _pk_ShipManagerID.n value to scripts in the ShipManager file to show the record, ship the record, get rates, void or track.