OnBeforePostPacking
Use this event to
Code to be executed prior to the posting of the Packing process.
Description
You may use this event to validate or update setup values in the 3rd party Shipping App prior to posting.
A sample use can be seen in our "ShipIt365 Connector" where external user names and passwords for the "Transsmart" service (used by the "IDYS ShipIt365 AppSource App") is updated based on which Packing Station was used for the handling.
Note: Transactional data (License Plates and Transport Orders) are better handled in the OnPostPackingOnBeforePostWarehouseShipment and OnPostPackingOnAfterPostWarehouseShipment events.
See also: Write Transaction Data to 3rd party Shipping App
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Pack API", 'OnBeforePostPacking', '', true, true)]
local procedure OnBeforePostPacking(_RegistrationType: Text; _PackingStation: Record "MOB Packing Station"; var _RequestValues: Record "MOB NS Request Element")
begin
if _RegistrationType <> 'PostPacking' then
exit;
// Your custom code here...
end;
More examples
Version History
Version | Changes |
---|---|
MOB5.42 | Introduced |