Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Use this event to

Book and Print external "Transport Orders" (or similar) in 3rd party Shipping App


Description

This event is triggered after each Warehouse Shipment being posted. You may use this event to Book new transport orders (or similar) and Print related documents from the 3rd party Shipping App.


Note: This event is similar to standard event "Whse.-Post Shipment.OnAfterPostWhseShipment.  It is included in the codeunit "MOS Pack API" for more accessible "interface" (all neccessary events are in one codeunit).

See also: Write transaction data to 3rd party Shipping App


Template

    /// <remarks>
    /// Redirected from standard event OnAfterPostWhseShipment to new local event for more accessible "interface" (all neccessary events in Codeunit MOS Pack API)
    /// </remarks>
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOS Pack API", 'OnPostPackingOnAfterPostWarehouseShipment''', false, false)]
    local procedure OnPostPackingOnAfterPostWarehouseShipment(var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
    begin
    end;


Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOS Pack API", 'OnPostPackingOnAfterPostWarehouseShipment''', false, false)]
    local procedure OnPostPackingOnAfterPostWarehouseShipment(var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
    begin
        if not WarehouseShipmentHeader.Find('='then   // No longer exists = fully posted
            BookAndPrintWhseShipment(WarehouseShipmentHeader);
    end;


Version History

VersionChanges
MOS1.0.0Introduced
  • No labels