Use this event to
...
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 to be sent to the "Transsmart" service (used by the "IDYS ShipIt365 AppSource App") is updated prior to posting the Packing.
Note: Transactional data (License Plates and Transport Orders) is better handled in the OnPostPackingOnBeforePostWarehouseShipment event.The
The "Shipping Provider Id" is used to separate imported master data from various 3rd party Shipping Apps that may otherwise use conflicting codes (i.e. two implementations both using Package Type = 'BOX').
Tasklet are using Id's "SHIPIT365" and "LOGTRADE" for its two out-of-the-box ShippingProvider implementations.
See also: Read master data from 3rd party Shipping App
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOS Pack API", 'OnDiscoverShippingProvider', '', true, true)]
local procedure OnDiscoverShippingProvider()
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOS Pack API", 'OnDiscoverShippingProvider', '', true, true)]
local procedure OnDiscoverShippingProvider()
var
MosPackAPI: Codeunit "MOS Pack API";
begin
MosPackAPI.SetupShippingProvider(GetShippingProviderId(), 'My custom ShippingProvider Connector App');
end;
local procedure GetShippingProviderId(): Code[20]
begin
exit('MYSHIPPINGPROVIDERID');
end;
Version History
Version | Changes |
---|---|
MOS1.0.0 | Introduced |
...