OnDiscoverShippingProvider
Use this event to
Expose your custom ShippingProvider Connector to Tasklet Pack and Ship
Description
Each 3rd party Shipping App being integrated into Pack & Ship must provide a unique "Shipping Provider Id" identifying this exact "ShippingProvider" Connector App integration.
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').
"SHIPIT365" is the out-of-the-box Shipping Provider for "Idyn ShipIT 365".
See also: Read Master Data from 3rd party Shipping App
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Pack API", 'OnDiscoverShippingProvider', '', true, true)]
local procedure OnDiscoverShippingProvider()
begin
end;
Example
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Pack API", 'OnDiscoverShippingProvider', '', true, true)]
local procedure MyOnDiscoverShippingProvider()
var
MobPackAPI: Codeunit "MOB Pack API";
begin
MobPackAPI.SetupShippingProvider(GetShippingProviderId(), 'My custom ShippingProvider Connector App');
end;
local procedure GetShippingProviderId(): Code[20]
begin
exit('MYSHIPPINGPROVIDERID');
end;
Version History
Version | Changes |
---|---|
MOB5.42 | Introduced |