Skip to content
MyAppBuilder
BetaWorkflow node

Publish event

Beta — ready to use, but some details may still change.

Overview

Tells the other apps of your workspace that something happened — “order confirmed”, “low stock” — with a typed, versioned message (sales.order_confirmed@1). Connected apps that subscribe start their own workflows with it.

Purpose

Connect separate business apps without copying data: a confirmed sales order reserves stock in the inventory app, low stock drafts a purchase request in the purchasing app, a completed work order lands in the asset register.

Inputs

  • Event — one of the events this app publishes (More → Connections → Publish an event). Its contract declares the fields, their types and which are required.
  • Values — one value per declared field (a record field, a result of an earlier step, a template). Nothing else is sent.

Configuration

  • Only declared fields leave the app; values are converted to the declared types, required fields must have a value and the message is at most 8 KB.
  • Test data talks to test data, live data to live data. Live connections need the Pro or Business plan; on other plans live events are captured, not delivered.
  • In the builder preview, Test runs and the data editor, events are captured, never delivered to other apps (an admin can deliver a captured test event by hand from the delivery log).
  • In a run started by a button, a form, a schedule or another app's event, the event is written in the same transaction as the run's record changes: if the run fails, the event is never sent.

Outputs

  • Step output: { event, eventId, status, deliveries } — status is dispatched (queued for the subscribing apps), captured (recorded, not delivered) or blocked (loop protection).

Example

Announce a confirmed order line

Example
Trigger: Order Lines › A record is created
Step 1  Find records  Products  (ID = Current record › Product)  → save as prod
Step 2  Publish event  sales.order_confirmed@1
  sku = {{results.prod.0.sku}} · quantity = {{record.quantity}} · order_line_id = {{record.id}}

Errors

  • “This app doesn't publish the event …” — publish the event under Connections first (or it was retired).
  • “… must be a number / is required by the event contract” — a value doesn't fit the declared field.
  • “The event is too large” — keep long texts out of events.

Limitations

  • Beta. Delivery order between events is not guaranteed.
  • An event caused by another event counts a hop; after 5 hops, or when the same app would publish the same event again in one chain, it is blocked (loop protection).
  • Files, images, JSON, lists and multi-choice fields can't be published.
  • When a step fails, the run stops there, is marked failed in Run history with the step name and error, and the remaining steps are skipped.

Advanced

  • Config: { event, version, payload: { <key>: Binding } }. Server: emitConnectedEvent() (src/server/connections/emit.ts) writes connected_events + one connected_deliveries row per active subscription with getDb() (the data-lock transaction when the run is locked) and starts delivery after the commit.
  • The sandbox (public previews, business tests) shows the step as simulated and never writes anything.

Related

Was this helpful?