Skip to main content

MGCLatticeCustomAdHocBusinessEvent

Generic ad-hoc custom business event. Allows a caller to raise a single reusable business event for an arbitrary record, carrying a caller-supplied event name plus a typed record reference (table name and RecId) and a free-form JSON payload, without authoring a dedicated event class per case. Lattice never raises it itself: it is sent only when customer X++ code calls MGCLatticeCustomAdHocEventApi::raiseEvent (an X++ API, not an OData action).

  • Event id: MGCLatticeCustomAdHocBusinessEvent
  • Contract class: MGCLatticeCustomAdHocBusinessEventContract

Payload fields​

NameTypeDescription
eventSequenceint64Gets or sets the ordering sequence of this emission.
correlationIdstrGets or sets the identifier grouping emissions that belong to one logical run or flow.
schemaVersionintGets or sets the payload schema version of the emitting contract.
eventNamestrGets or sets the caller-supplied logical name of the ad-hoc event.
tableNamestrGets or sets the name of the referenced table.
recIdRefRecIdGets or sets the RecId of the referenced record.
payloadJsonstrGets or sets the free-form JSON payload supplied by the caller.