Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Update Validate or update external setup tables prior to posting

...

You may use this event to validate or update setup values in the 3rd party Shipping App prior to posting.   Transactional data

Note: Transactional data (License Plates and Transport Orders) is better handled in the OnPostPackingOnBeforePostWarehouseShipment event.


Each 3rd party Shipping App being integrated into "Tasklet Pack and Ship" must provide a unique "Shipping Provider Id" identifying this exact "ShippingProvider" Connector App integration.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.

...

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOS Pack API", 'OnDiscoverShippingProvider''', true, true)]
    local procedure OnDiscoverShippingProvider()
    begin
    end;

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"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

VersionChanges
MOS1.0.0Introduced

...