Two new WorldLink events have been added for Server Scripts for the purpose of submitting an EDI transmission after shipping. The events are: EDI Transmission After Shipment and EDI Re-Transmission After Shipment. The option to send information after each shipment is available only for WL Rating Engine carriers.
To setup a carrier for the EDI Transmissions, go to Configuration | Carriers | Carrier Accounts. Add or edit a WL Rating Engine carrier. Check the box EDI Transmission After Shipment.
Note: You will not be able to change this setting if there are any un-posted manifests for this carrier. This includes: open, closed, active and future.
If EDI Transmission After Shipment is turned on for a carrier, then future manifests will not be allowed for that carrier. If you try to create a future manifest, you will get the following message:
When the EDI Transmission After Shipment option is activated for a carrier, a server script will be executed after a shipment is done for this carrier. The code for this script will have to be developed on a per customer basis. This can be done from System Tools | Events Maintenance | Server Events. Add a new script with EDI Transmission after Shipment selected as the WL Event.
From the main Server Script window, select this script and then select the code button to enter the code for the script.
The script will automatically run at the time of shipment. If the script fails, the shipment will still be shipped and you will be notified that there was an error in the script by a message such as shown here:
After the EDI transmission, WorldLink will allow those shipments to be voided, but will warn you that an EDI transmission was sent by displaying the following message:
In this case, only the entire shipment, not individual packages, can be voided.
The EDI Trans. button on the View Shipments screen will activate the EDI Re-Transmission After Shipment event. This action can only be taken on a per shipment basis.
If the re-transmission fails, the following message will be displayed:
To setup this script, use the same steps as the EDI Transmission After Shipment event, using the EDI Re-Transmission After Shipment event instead.