Create a Starter Ship Script
The basic shipping script will be created in your system and will set values in the NRGship data file for a new domestic shipment.
1. Create a new script and call it "Set Ship Data"
2. Using the Set Field script step, you will need to set a value in the following fields of the UPS_Ship table:
# Set recipient information
ShipTo_Name
ShipTo_AttentionName
ShipTo_AddressLine1
ShipTo_AddressLine2
ShipTo_AddressLine3
ShipTo_City
ShipTo_StateProvinceCode
ShipTo_PostalCode
ShipTo_Country
ShipTo_PhoneNumber
ShipTo_EmailAddress
# Set service information
Service
# Set ancillary options
SaturdayDelivery [1 if checked]
ShipTo_ResidentialAddress [1 if checked]
Email_SendEnabled [1 if checked]
[commit record]
Next, if you know the weight or dimensions of the package, you can pre-populate the data for the shipper by setting values in UPS_Ship_Packages
# Set package information
UPS_Ship_Packages::Weight
UPS_Ship_Packages::InsuredValue
UPS_Ship_Packages::Width
UPS_Ship_Packages::Length
UPS_Ship_Packages::Height
# Set reference fields
UPS_Ship_Packages::ReferenceNumber1
UPS_Ship_Packages::ReferenceNumber2
[commit record]
# Optional
Perform External Script "External - Show Ship_ID" in NRGship UPS Pro file (and pass the related ship record's Ship_ID value as a Script Parameter)
Once the NRGship record is created, you can pass the Ship_ID value to scripts in the NRGship UPS Pro file to show the record, ship the record, get rates, void or track.