Versions Compared

Key

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

Use this event to

Excerpt

Perform logic after posting. For example, printing a label.

Description

...

  • After all other OnPost...-events
  • Only if posting succeeds


... for all source documents:

  • Warehouse Movement
  • Inventory Movement

...

Note
titleCommit

Database posting transactions are committed to the database prior to this event.

This event is furthermore run as an isolated process. 

  • _ResultMessage therefore contains both a posting success -message message and any error - message that has occurred in subscribers to this event. 

Template

...

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS move", 'OnPostMoveOrder_OnAfterPostWarehouseActivity''', true, true)]
    local procedure OnPostMoveOrder_OnAfterPostWarehouseActivity(var _OrderValues: Record "MOB Common Element"var _ResultMessageWhseActivityLine: Record Text"Warehouse Activity Line"var _WhseActivityLineResultMessageRecord "Warehouse Activity Line"Text)
    begin
    end;

Parameters

  • _OrderValues: Header steps
  • _RecRef: Reference to the last line e.g. "Warehouse Activity Line" being posted
  • _ResultMessage: The message shown on mobile after posting

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleExamples
excerptTypesimple
cqllabel = "bc" and label = "order" and label = "example" and label = "onafterpost"

...