OnAfterCreateDefaultDocumentTypes

Use this event to

Add new custom Mobile Document Type.


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Setup Doc. Types", 'OnAfterCreateDefaultDocumentTypes''', true, true)]
    local procedure MyOnAfterCreateDefaultDocumentTypes()
    begin
    end;

Example

    // [Example : Add Custom Mobile DocumentType]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Setup Doc. Types", 'OnAfterCreateDefaultDocumentTypes''', true, true)]
    local procedure Ex01MyOnAfterCreateDefaultDocumentTypes()
    var
        MobWmsSetupDocTypes: Codeunit "MOB WMS Setup Doc. Types";
    begin
        MobWmsSetupDocTypes.CreateDocumentType('MyCustomDocType'''Codeunit::"MOB WMS Whse. Inquiry");
    end;


See also:

 

Version History

VersionChanges
MOB5.18Introduced