Use this event to
Excerpt |
---|
Validate or update external setup tables prior to posting |
...
Note: Transactional data (License Plates and Transport Orders) is better handled in the OnPostPackingOnBeforePostWarehouseShipment event.
See also: Read master Write transaction data from to 3rd party Shipping App
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOS Pack API", 'OnBeforePostPacking', '', true, true)]
local procedure OnBeforePostPacking_UpdatePackingStation(_RegistrationType: Text; _PackingStation: Record "MOS Packing Station"; var _RequestValues: Record "MOB NS Request Element")
begin
if _RegistrationType <> 'PostPacking' then
exit;
// Your custom code here...
end;
Example
/// TODO
Version History
...