Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Use this event to

Validate or update external setup tables prior to posting


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) is better handled in the OnPostPackingOnBeforePostWarehouseShipment event.

See also: Read master data from 3rd party Shipping App


Template

    [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
  • No labels