Skip to content

This page is for integrators and developers who read or write reactions through the API, build tooling around them, or need the exact runtime contract — the stored model and its numeric enums, every event and action type with its options, how conditions are evaluated, how runs are executed, chained and recorded, and the endpoints.

In the API and the code a reaction is called a trigger; the stored model is DataReaction. A reaction binds to one event type on a defining entity, optionally narrows down with conditions (an event-level matcher plus a criteria/query filter), and then runs its action. Actions can create, update or archive data, drive workflows, call external APIs, send notifications, email, SMS or WhatsApp, generate files, run custom functions and publish new events that other reactions listen to — which is what lets reactions chain.

The automation engine lives in its own microservice, reaction-service. The data-service does not execute reactions itself; its ReactionServiceProvider / ReactionServiceWrapper (backend/services/data-service/src/services/reaction.service.ts) is a LoopBack service proxy over the restds datasource that forwards getEntityReactions / getReaction to the reaction microservice, wrapped in async-retry (client 4xx errors bail immediately; other errors retry). The data-entity-action model folder under data-service mirrors the action option DTOs, but the authoritative, executed models are those under reaction-service/src/models.

Reactions are stored in MongoDB (the DataReaction collection) and are triggered by domain events consumed off the service bus (@node-ts/bus), not by direct REST calls. Each EventTypeEnum has a bus event handler under handlers/events/** that resolves affected entries and dispatches into the central EventsHandler.

The engine internals behind this — dispatch, chunked fan-out, sagas and recovery — are documented for platform engineers in Engine: Reactions.

Source: models/data-reaction/data-reaction.model.ts. Key fields:

FieldTypeMeaning
idUUIDTrigger id
specificationVersionnumber (default 1)Schema version of the reaction
normalizedNamestringMachine name (pattern/length from NormalizedNameValidation)
nameLocalizedValueDisplay name
descriptionNullableLocalizedValueOptional description shown on the Reactions tab. Since 1.10
definingEntityReferencePropertyThe entity the reaction is attached to ({dataEntity:'DataEntity', dataEntry:<entityId>})
eventTypeEventTypeEnumThe event that fires this reaction (see below)
eventConfigunion DataReactionEventConfigPer-event configuration + conditions
executorTypeEventExecutorTypeEnum (SYSTEM / MANAGER / EXECUTOR)Whose identity/permissions the actions run under
sensitiveDataAccessPolicySensitiveDataAccessPolicyEnumWhat the reaction’s actions may see of a sensitive field on the entries they touch; absent means Privileged. See Sensitive-data access policy. Since 1.10
queryReferenceProperty | nullOptional saved DataQuery whose criteria is AND-merged into the condition
criteriaFilterExpressionOptional condition filter evaluated against the trigger context
actionsDataReactionAction[]Ordered actions to execute
typeDataReactionTriggerTypeEnum (NormalTrigger=0, SLATrigger=1)Normal vs SLA trigger
sourceEntityDataReactionSourceEntity | nullFires from a related/absolute entity instead of self (see Related-entity triggers)
relatedEntitiesDataReactionRelatedEntities[]Related entities pulled into the context
spaceScopeDataReactionSpaceScopeWhich spaces the reaction executes in (rootSpace / currentSpace / otherSpaces)
loopThresholdnumber (default 0)Max re-execution loops per action; 0 = run once (see Loop protection)
isImplicitbooleanSystem-generated reaction (protected from user CRUD)
disabledbooleanSkipped by the dispatcher when true
validationsDataReactionValidation | nullValidity state; invalid triggers are skipped at dispatch
updateIdentifierstring (UUID)Optimistic-concurrency token (see PATCH)
creationInfo / updateInfoActionInfoAudit stamps

The DataReaction model uses settings.strict:false-style loose typing in places because options and eventConfig are any-typed unions resolved at runtime.

A reaction can declare what its actions are allowed to see of a sensitive field on the entries they touch. The setting is sensitiveDataAccessPolicy, picked in the reaction editor from a Sensitive Data Access Policy dropdown — the dropdown only appears when the entity actually has a sensitive field, so most reactions never meet it. There are four choices:

PolicyWhat the automation sees
Privileged — the default when nothing is storedThe real value, always, whoever or whatever triggered the run, and regardless of that person’s own grants. This is what every reaction written before the setting existed already did, so nothing changed for them.
ProhibitedThe mask (****), always — whoever or whatever triggered the run. The reaction can still act on the entry; it just never sees the real value of a sensitive field.
User-BasedDecided per run, from the grants of the person who actually triggered it: they see what they would see reading the entry themselves, and someone without the grant gets the mask.
AutoSystem-triggered runs behave as Privileged; user-triggered runs behave as User-Based. Use it for a reaction that fires both ways and should follow the person whenever there is one.

User-Based cannot be combined with an automatic trigger. A reaction that fires with no person in the loop — its executor is the system, or its event is a timer or SLA time exceeded — has no “actual executor” whose grants could be consulted, so saving User-Based on one is rejected with “The ‘User-Based’ policy cannot be selected with an automatic trigger type”, shown under the dropdown. Auto is the setting to reach for there: it resolves to Privileged on exactly those runs. Privileged and Prohibited stay available on an automatic trigger.

What a masking policy means for a write. Under Prohibited — or under User-Based/Auto when the run resolves to masked — an action must not store a mask over a real value, so a write that would do that fails instead. Since 1.10 that check is scoped to the write itself. An Update Data Entry (UpdateDataEntry) action against an entity that merely holds a sensitive field could previously never run at all under a masking policy, whatever it actually wrote: setting one unrelated, non-sensitive field to a constant was enough to fail it, and the only workaround was to switch the reaction to Privileged. Now the action fails only if that particular write would have stored a masked value; a mask that was already sitting in the entry because the policy masked it on the way in is left alone, and never reaches storage. Create Data Entry (CreateDataEntry) was never affected — it starts from an empty value, so any mask there is one the action introduced — while Call API (CallApi) and Send Email (SendEmail) stay under the stricter whole-value check, because those send the value out of the platform.

Source: models/data-reaction/data-reaction-action.model.ts (and the data-service mirror at models/data-reaction-action.model.ts).

FieldTypeMeaning
normalizedNamestringMachine name of the action (used as the key in the trigger context and loop tracking)
nameLocalizedValueDisplay name
descriptionNullableLocalizedValueOptional
actionTypeAutomatedActionTypeEnumWhich handler runs (see Action types)
optionsunion DataReactionActionOptionsPer-action-type configuration
resultFieldstringSet at runtime to the result id, so later actions can reference this action’s output
overridableOptionsActionOverridableOptions[]Option paths that may be overridden per execution

One action per reaction. The model stores actions as an array, but the builder creates and edits exactly one action per reaction, and save-time validation is written for one. Model a sequence as separate reactions chained with ReactionSucceeded (see Chaining reactions).

Duplicating in the builder Since 1.8. A duplicated reaction opens as a new reaction whose event can be changed (only a reaction added from an event group’s +, or an existing one being edited, keeps its event locked). If the event is changed away from Event Announced while the source is an absolute entity — a source only an announced event can use — the source falls back to Self instead of the hidden absolute entity still being saved.

EventTypeEnum (packages/osos-shared/src/models/enums.ts) — the complete set a reaction can bind to via eventType:

#EventTypeEnumFires whenEvent config type
0DataEntryCreatedAn entry is createdDataEntryCreatedEventConfig
1DataEntryUpdatedAn entry is updatedDataEntryUpdatedEventConfig (field-level matching)
2DataEntryArchivedAn entry is archivedDataEntryArchivedEventConfig
3WorkflowActionExecutedA workflow action runsWorkflowActionExecutedEventConfig (step/action filter)
4WorkflowStepReachedA workflow step is reachedWorkflowStepReachedEventConfig (step filter)
5WorkflowStepExitedA workflow step is exitedWorkflowStepExitedEventConfig (step/action filter)
6TimerA scheduled time / cron firesTimerEventConfig
7CustomEventA button fires the custom action, or another reaction’s Execute Custom Action action invokes it (Local or External type only)CustomEventConfig (customActionType + contextual Since 1.8; may prompt the user for input)
8ReactionSucceededAnother reaction completed successfullyReactionSucceededEventConfig (entityId + triggerId)
9FileGeneratedA file/template was generatedFileGeneratedEventConfig (template)
10ReactionFailedAnother reaction failedReactionFailedEventConfig (entityId + triggerId) Since 1.8
11EventAnnouncedAn AnnounceEvent action published an announcementEventAnnouncedEventConfig (entityId + announcementId) Since 1.8
12DataEntryRestoredAn archived entry is restored(BaseEventConfig) Since 1.8
14WorkflowStepOwnerChangedA workflow step’s owner changesWorkflowStepOwnerChangedEventConfig (owner-change-type + step filter) Since 1.8
20ZapierEventAn inbound Zapier integration event(BaseEventConfig)
100SlaTimeExceededA workflow SLA time is exceededSLATimeExceededEventConfig (occurrences: startingAfter/repeatAfter in seconds, repetitions a count)

Events 8, 10 and 11 are what make reaction chaining possible — see Chaining reactions. SlaTimeExceeded is raised by a per-minute background check that marks due-but-open workflow steps as overdue, so you can react to SLA breaches automatically (for example, escalate to a manager or reassign the step owner).

Which events fire — with and without a workflow

Section titled “Which events fire — with and without a workflow”

Reaction events originate in the data-service write paths, and the set that fires depends only on the operation — attaching a workflow never suppresses an event. In particular, DataEntryCreated is published unconditionally on every entry create; when the entity has workflows attached, the create additionally publishes WorkflowStepReached for the first step of the active workflow. The same holds on the create-with-related-entries path: DataEntryCreated fires for the main entry and for each related entry, plus one WorkflowStepReached per workflow-backed entity.

OperationFires for every entityFires only with a workflow attached
Entry createdDataEntryCreatedWorkflowStepReached (first step)
Entry updatedDataEntryUpdated (immediate, or deferred until the surrounding transaction commits)—
Entry archivedDataEntryArchived—
Entry restoredDataEntryRestored—
Workflow step moved—WorkflowStepReached + WorkflowStepExited
Workflow action executed—WorkflowActionExecuted + WorkflowStepExited
Step owner changed—WorkflowStepOwnerChanged
Ad-hoc step inserted—WorkflowStepReached
Workflow SLA breached—SlaTimeExceeded (raised by the per-minute SLA check)

Two consequences worth designing around:

  • Workflow step transitions do not publish DataEntryUpdated. The step-change handlers publish only the workflow events, so a reaction that must fire when an entry moves through its workflow has to bind to WorkflowStepReached / WorkflowStepExited (or the other workflow events) — a DataEntryUpdated reaction will not see the step change.
  • A failed event publish on the create path is swallowed. The publish block is wrapped in a try/catch that logs Error publishing event and continues, so the API caller still gets a successful create even when no event went out. If a DataEntryCreated reaction unexpectedly did not run for a successfully created entry, check the data-service log for that message before debugging the reaction itself.

On deployments older than 1.8, the event types ReactionFailed (10), EventAnnounced (11), DataEntryRestored (12), and WorkflowStepOwnerChanged (14) do not exist in EventTypeEnum at all — reactions cannot bind to them, and they never fire there.

TimerEventConfig.timerOptions supports either a one-time run (oneTime, an ISO timestamp) or a repeat schedule. repeat.expression is “a human-readable format String, or a cron format String” and repeat.options accepts timezone (moment-timezone), startDate, and endDate. Timer executions run through EventsHandler.handleTimerTrigger, which builds the context, runs the actions, writes a TriggerHistory, and publishes TriggerExecutedEvent — the same tail as normal events.

Chunked async fan-out. A timer does not process its whole target set inline. When it fires, the scheduler handler (trigger-timer-job-triggerd.handler.ts) loads the active timer trigger, applies its criteria to resolve matching entries, then splits those entry ids into chunks and enqueues them as BullMQ parent/child jobs through a FlowProducer, so the actions run asynchronously in batches. Chunk size comes from TIMER_EVENT_CHUNK_SIZE (default 100). Large target sets therefore process batch-by-batch across workers rather than all at once.

A CustomEvent — presented in the builder as a Custom Action Since 1.8, and still called Custom Event in the code and API — is raised from a UI button attached to an entry’s options (see the Buttons guide), so a reaction can be invoked on demand rather than by a data change. Two builder-side capabilities extend it:

  • Execution indicator — for a UI reaction you can control the loading indicator shown while the reaction runs: Blocking (show the indicator and block the user until it finishes), Inform (show the indicator but let the user navigate away), or None. When Blocking is selected you can also edit the On execution started and On execution succeeded messages shown to the end user.
  • Ask User — enable Ask User For to collect input before the actions run. Give the dialog a Dialog Name and choose the Fields Source: an Inline Entity (manually entered JSON) or a View (only views with “Ask the User” enabled appear, and their fields populate the dialog). The values the user enters can then be mapped into the selected action’s fields. In the code this input is carried into the context as the AskUser entity.

Like timers, custom events fan their matching entries into BullMQ parent/child chunk jobs (custom-event-triggered.handler.ts) rather than running inline — chunk size CUSTOM_EVENT_CHUNK_SIZE (default 100). The handler additionally emits a socket JobStarted event (JobStartedMessage) when the batch is enqueued, so the UI can report progress while a large target set processes asynchronously in batches.

Custom action type and Contextual Since 1.8

Section titled “Custom action type and Contextual Since 1.8”

The trigger is named Custom Action in the builder, and it is configured with two settings that together replace the old UI Event toggle:

  • Custom action level — a dropdown (customActionType) with three values, shown as UI action, Local action and External action:
    • UI — the action is invoked from a user interface, i.e. a system button. This is the equivalent of the old UI Event toggle being on.
    • Local — a module-level action, callable from another reaction’s Execute Custom Action action only when the calling trigger’s own entity belongs to the same module.
    • External — callable from an Execute Custom Action action anywhere, in any module.
  • Contextual — a toggle (contextual), on by default. It governs whether the action expects a target entry at all: a contextual action needs one (resolved by its own event, or by the calling Execute Custom Action action’s Scope — see below); a non-contextual action has none and simply runs once when invoked.

Two rules follow from the type you choose:

  • The Show to user options — the execution indicator and its On Start / On Success messages described above — apply only when the type is UI. They are disabled for Local and External.
  • The ask-user field is labelled Ask User For when the type is UI, and Parameters when it is Local or External — because for a non-UI action those same fields double as the binding target for a calling Execute Custom Action action’s Parameters (see below). Asking for input no longer depends on the type: a Local or External action can collect input too.
  • System buttons can only fire UI-level actions. A button can structurally point at a Local/External custom action, but running it that way is rejected with a 403 — see Buttons: system buttons can only fire UI-level actions for why and what error to expect.

Existing reactions. Every custom-action trigger that existed before 1.8 was migrated to type UI with Contextual switched on, and the retired uiEvent flag was removed — review any trigger that should now be Local or External and change its type by hand; the original flag cannot be recovered. Triggers that had already been configured with the old Module/Internal values were carried forward automatically to Local/External by the terminology-rename migration above — no manual action is needed for that part.

WorkflowStepOwnerChanged (14) fires whenever the owner of a workflow step on an entry changes. The event is published by the data-service right after the new owner has been persisted, so a reaction bound to it always sees the committed state.

It covers three kinds of change, and the event says which one it was — so a reaction can react to a hand-off without also firing when somebody simply picks up an unowned step:

OwnerChangeTypeEnumFires when
ChangeOwner (0)The owner is changed to somebody else. This is also the fallback when the caller did not say which kind of change it was.
TakeOwnership (1)A user takes ownership of the step. Resolved server-side whenever the change came through take-ownership mode, regardless of what the caller asked for.
Reassign (2)The step is reassigned.

Alongside the change type, the event carries the workflow and step ids, the localized step name, the previous and new owner, the original owner, the note and permanent-change flag supplied with the change, and whether the step was an ad-hoc step.

Builder configuration. The event’s own config (WorkflowStepOwnerChangedEventConfig) exposes two optional filters, and the reaction builder shows a dedicated panel for them:

  • Owner Change Type — a multiselect over ownerChangeTypes with the three values above. Leave it empty and the reaction fires on any kind of owner change.
  • Choose Step — the shared step selector, stored as steps. Leave it empty and the reaction fires on any step, including steps added to the workflow later. Steps are matched on the workflow and step id as a pair, so a step id reused across two workflows cannot cross-fire. The selector’s ADHOC_STEP entry matches an owner change that happened on an ad-hoc step of the selected workflow.

The reaction’s actions can read the change through the event’s reaction schema, which exposes the change type as a localized label plus a step-information block: the step id and name, the previous and new owner (resolvable to a user, group, or lookup collection), and who executed the change.

A reaction has two independent filtering stages, both optional. If neither is configured, every matching event runs the actions.

Before building a context, EventsHandler.checkEventMatcher looks up an IEventMatcher for the eventType (via EventMatchersFactoryService). If one exists, its isEventMatchTrigger(eventConfig, event) decides whether to proceed. Matchers exist for a subset of events:

  • DataEntryUpdated — DataEntryUpdatedEventMatcher matches only if one of the changed fields (event.valueChanges[].fullNormalizedName) is in eventConfig.fields. If fields and relatedFields are both empty, it matches any change.
  • WorkflowStepReached / WorkflowStepExited / WorkflowActionExecuted — match against the configured steps/actions; empty selection matches all.
  • WorkflowStepOwnerChanged — matches against the configured ownerChangeTypes and steps; either one left empty matches all. Since 1.8.
  • SlaTimeExceeded and FileGenerated — have their own matchers (step selection / template).

Event types without a matcher (created, archived, restored, timer, custom, reaction-succeeded/failed, event-announced, zapier) always pass this stage and rely solely on the criteria filter.

criteria is a FilterExpression evaluated against the resolved entry — the same mechanism as a saved query, so a builder can reuse an existing query from the entity under the Entry Source option. When a query reference is also set, its criteria is AND-merged:

trigger.criteria = {
operator: ExpressionTypeEnum.And,
args: [trigger.criteria, query.result.criteria],
};

Evaluation runs the parsed criteria as a real MongoDB query over the candidate entry (QueryEngineService.parseCriteria → DataEntryService.findWithResolvesFactory), so a criteria behaves like the same filter in a saved query. Since 1.10 the entry is handed to MongoDB as an in-memory $documents aggregate source instead of being copied into a temporary trigger_<random> collection: nothing is written or dropped per run, and a crashed pod leaves nothing behind. The design consequence is that operators that need a real collection cannot be used in a reaction criteria — $text, $geoNear / $near / $nearSphere, $indexStats, $collStats, $out and $merge. For the standard path, EventsHandler.getResolvedEntry merges the criteria with an id filter and only proceeds if the entry still matches; for the reaction-succeeded path it uses findMatchedCriteriaInTriggerContext. If the entry does not match, the reaction is skipped (logged as “criteria is not matched with event data”).

This means criteria can reference any field reachable in the trigger context, including related entities via relation-traversal paths (value.requester.:relation.value.first_name) resolved by TriggerContext.

Date pointers in criteria. A criteria argument of type Pointer resolves @-prefixed date functions before the query runs. Both @today() and @now() are supported (alongside @StartOfDay(), @StartOfWeek(), @StartOfMonth(), and @StartOfYear()), but they return different shapes — and matching depends on the shape:

  • @now() returns a full ISO datetime, so it only suits comparisons against datetime-typed values. Compared against a date-only stored value, an equality or range check never matches — which presents as “@now() doesn’t work” even though the pointer resolved fine.
  • @today('±Nd') returns a date-only string — use it for date-only fields. (Internally it formats start-of-today plus a hard-coded two-hour offset.)
  • The manipulation amount must be signed: @today('+1d') and @today('-3d') work, but an unsigned @today('1d') is silently ignored and the base date is returned. Units: d days, w weeks, M months, y years, h hours, m minutes, s seconds.
  • A pointer that fails to evaluate is not silent — the expression service throws an ExpressionExecutionException.

Actions are dispatched by AutomatedActionTypeEnum → an IActionHandler. Handlers are auto-registered by ActionHandlersBooter, which scans action-handlers/**/*.action-handler.js and binds each class under entity-action-handlers:<actionType> using the class’s static actionType. At runtime EventsHandler.actionHandler resolves the handler via ActionHandlerFactoryService.getActionHandler(action.actionType); an unknown type throws DataNotSupportedException.

The enum declares 26 values; 24 have a concrete handler in reaction-service — three of them new in 1.10: SetPermission (31) and RemovePermission (32) (see Set / Remove Permission actions) and SendWhatsApp (107). The exact options body for every type is in the Action options reference. CreateDataEntity (0) and UpdateDataEntity (1) are declared in the enum and have option interfaces (CreateDataEntityActionOptions, UpdateDataEntityActionOptions) but never had a handler. Since 1.10 they are formally retired: the builder no longer offers them, creating or updating a reaction that carries either type is refused with 422, and an action of either type already stored in an older reaction is skipped when the reaction fires — it is recorded as a failed action whose error reads action type N (<name>) was removed (…); action skipped, and the actions after it still run. The two enum values stay only because stored reactions may still carry them.

#AutomatedActionTypeEnumHandler fileWhat it does
0CreateDataEntity(none)Retired — refused on save (422), skipped at run time Since 1.10
1UpdateDataEntity(none)Retired — refused on save (422), skipped at run time Since 1.10
2ArchiveDataEntityarchive-data-entityArchive a whole data entity (entity-level, distinct from archiving an entry)
10CreateDataEntrycreate-data-entryCreate an entry on a target entity, mapping values from context
11UpdateDataEntryupdate-data-entryUpdate self / referenced / related / query-selected entries
12ArchiveDataEntryarchive-data-entryArchive entries (self / relation / query source)
13CreateBlockItemcreate-block-itemAppend an item to a block (sub-table) field
14UpdateBlockItemupdate-block-itemUpdate block item(s) by index/field/expression criteria
15DeleteBlockItemdelete-block-itemDelete block item(s) by criteria
16DeleteArchivedEntrydelete-archived-data-entryPermanently delete already-archived entries
20MoveWorkflowToStepmove-workflow-to-stepMove a workflow to a target step
21ExecuteWorkflowActionexecute-workflow-stepExecute one or more workflow actions
22ChangeCurrentStepOwnerchange-current-step-ownerReassign the current workflow step owner
30UserActivationToggleuser-activation-toggleActivate/deactivate users (bulk)
31SetPermissionset-permissionGrant an access level on a resource to users or groups Since 1.10
32RemovePermissionremove-permissionRevoke users’ or groups’ grant on a resource Since 1.10
90CallApicall-apiCall an external HTTP API
100SendNotificationsend-notificationIn-app notification from a template
101SendEmailsend-emailEmail from a template
102SendSmssend-smsSMS from a template
103GenerateFileFromTemplategenerate-file-from-templateRender a file from a template
104ExecuteCustomFunctionexecute-custom-functionRun a custom (Knative) function
105AnnounceEventannounce-eventPublish an announcement that EventAnnounced reactions consume
106ExecuteCustomActionexecute-custom-actionRun a Local- or External-level Custom Action reaction against the entry/entries its Scope resolves — or once, with no entry, when the target is non-contextual Since 1.8
107SendWhatsAppsend-whatsappSend an approved Meta WhatsApp template to the resolved recipients Since 1.10
200NotifyZapiernotify-zapierPush an outbound event to Zapier

Options are the action.options union DataReactionActionOptions (packages/osos-shared/src/models/trigger-actions.ts). Highlights a developer needs — the full request body for each type is in the Action options reference:

  • Value mapping (EntryActionOptionsValue[]) — most data actions carry values: {fieldName, valueType, value}[]. value may be a fixed (manual) value, a field from the source entity, or a pointer. @thisReference() (surfaced in the builder as This Entry) refers to the entry that fired the event — write it with the parentheses, see Action options reference; Current User refers to the user who triggered the reaction. When mapping into repeated/multi-value or block fields, only source fields whose data type and repetition limits are compatible with the target are offered.
  • CreateDataEntry — entitySource: {entityId?} or {fieldName?} (the destination entity may be dynamic from a field) + values. The created entry’s id is returned as resultId and its value plus a thisEntry reference is exposed as the action output.
  • UpdateDataEntry / block items — updateEntryMode = Self (0) / Reference (1) / Relation (2); entryToUpdate selects the target (mode: Fixed/Dynamic, plus relationId / targetEntityId for relation mode). Block variants add blockField and (for update/delete) a criteria with type FixedIndex/Field/Expression and an onFailure policy.
  • CallApi — apiUrl, verb (GET/POST/PATCH/PUT/DELETE), optional headers, body ({custom, customBody}), and tokensMap for token substitution. Success is 2xx; the handler returns the full request/response (headers/body serialized) as the action output.
  • SendEmail — toRecipients/ccRecipients/bccRecipients (each a {sourceType, source:{type, value}}), template (a template UUID or an inline EmailTemplateValue with subject/body/tokens), tokensMap, from (System/ReactionExecutor/Custom via SendEmailFromModeEnum), link ({enabled, viewId}), and attachments.
  • SendNotification — channels (currently only InApp=0 in NotificationChannelTypeEnum), recipients, template (UUID or inline NotificationTemplateValue), module, tokensMap, and customRedirection ({enabled, viewId}).
  • SendSms — recipients (sources: DataCollection / Entity / Static), inline template ({content, tokens}), tokensMap, link.
  • AnnounceEvent — announcementId plus a schemaMapping that maps trigger-context values into the announcement’s inline/external entity fields.
  • ChangeCurrentStepOwner — type/source/ownerOptions, a fallbackOwner, and permanentChange (default false).
  • ArchiveDataEntry / DeleteArchivedEntry — sourceMode selects self vs relation vs query source, with relation ({relationId?, referenceFieldId?}) and querySource.
  • ExecuteCustomAction Since 1.8 — customActionId (the target custom action, which must be a CustomEvent reaction of type Local or External), scope (Self / Reference / Relation / Expression / Pointer, shown only when the target is contextual), and parameters (bindings into the target’s Parameters, independent of scope). See Execute Custom Action for the full picture.
  • SetPermission / RemovePermission Since 1.10 — resource (entitlementType + entitlementId), principal (kind + source) and, for Set only, level. See Set / Remove Permission actions.
  • NotifyZapier — no options (NotifyZapierActionOptions is empty).

Field-compatibility mapping (Create Entry)

Section titled “Field-compatibility mapping (Create Entry)”

For CreateDataEntry the builder only offers source fields whose data type and repetition limits are compatible with the target, and the runtime resolves each source shape into the target with a fixed reduction rule. The offered set and the per-scenario resolution depend on the target field’s shape:

Target is a repeated multi-value field (standalone or in a single block) — only fields matching the target’s data type and repetition limits appear:

Source field typeResolution
Single-value (standalone / single block)Target filled directly with the source value
Single-value in repeated blockFirst block repetition’s value used
Repeated (standalone / single block)First repetition of the source used
Repeated in repeated blockFirst block → first field repetition used
Multi-value (standalone / single block)First value of the source used
Multi-value in repeated blockFirst block → first value used
Repeated multi-value (standalone / block)First repetition → first value used
Repeated multi-value in repeated blockFirst block → first repetition → first value used

Target is a repeated single-value field (standalone or in a single block) — only multi-value source fields whose minimum is ≥ the target’s minimum are offered:

Source field typeResolution
Single-value (standalone / single block)Single repetition filled from the source value
Single-value in repeated blockFirst block repetition’s value used for the single repetition
Repeated single-value (standalone / block)All source values used
Repeated single-value in repeated blockFirst block’s values used
Multi-value (standalone / block)First value used for the single repetition
Multi-value in repeated blockFirst block → first value used
Repeated multi-value (standalone / block)First value from each repetition used
Repeated multi-value in repeated blockFirst block → first value from each repetition used

Target is a required single-value field (standalone or in a single block) — only required source fields with an exactly matching data type are offered, and they must be standalone or in a single block (not in a repeated block whose minimum repetition is zero):

Source field typeResolution
Required single-value (standalone / single block)Source value copied directly to the target
Required single-value in repeated blockFirst block’s value used
Repeated (standalone / single block)First repetition value used
Repeated in repeated blockFirst block → first repetition value used
Multi-value (standalone / single block)First value used
Multi-value in repeated blockFirst block → first value used
Repeated multi-value (standalone / single block)First repetition → first value used
Repeated multi-value in repeated blockFirst block → first repetition → first value used

Beyond the raw option shapes, a few actions have builder-facing behaviour worth calling out:

  • Send Email offers three sender modes: System (default sender), Reaction Executor (the user who ran the reaction), or Custom (a static user, a variable user field, or a manually entered address). Attachments can be pulled from file fields on the entry (variable) or uploaded as a static file.
  • Generate File (GenerateFileFromTemplate) renders a file from an entity template, with a configurable retention period (forever, or a number of days) and an optional custom file name (placeholders or manual). On completion the user is notified and can download the file from the notification.
  • Execute Workflow Step Action (ExecuteWorkflowAction) auto-executes the current step’s action and chains through subsequent automatable steps; Move Workflow to Step jumps a workflow instance to a chosen step.
  • Change Current Step Owner reassigns the owner of the entry’s current workflow step — commonly paired with SlaTimeExceeded to escalate an overdue step.
  • Activate/Deactivate User (UserActivationToggle) activates/deactivates user entries in bulk (for example, offboarding when a record is archived).
  • Execute Function (ExecuteCustomFunction) invokes a user-authored serverless function for logic beyond the built-in catalogue; the function must be provisioned and active, and its result is captured back into the context for later actions. Since 1.10 later actions and chained reactions can bind its success, message and any key below its result — see Execute Function output in chained reactions.
  • Tokens bound to a step’s original owner Since 1.10 — an email, notification or SMS token (or a custom variable) that reads the current step’s original owner display value — _metaCurrentSteps[n].originalOwner._resolved.mainTitle, or mainPicture — used to render as an empty string whenever that owner was a group (or a data collection), while the very same expression worked in views and cards. It now renders the group’s real title, for every current-step instance rather than only the active one.

Two silent correctness bugs on repeatable-block writes were fixed this cycle — both returned a normal success response and showed up in the entry history as a completed write, so the only symptom was wrong data on the block:

  • A second Create Block Item action targeting the same block no longer overwrites the first. A reaction with two CreateBlockItem actions appending to the same block field in one run used to leave only the second row — the first action’s row was silently discarded. Both actions now append correctly, so a run that adds several rows to the same block ends up with all of them.
  • An Update Data Entry action writing a single sub-field of a repeatable block no longer collapses the block down to one row. Writing just one sub-field across every existing row of a block used to replace the whole block with a single new row (and, if the block had a minimum row count, pad that one row back up to the minimum — so the row count could look unchanged while every row’s content was wrong). The write now correctly applies to every pre-existing row, updating only the targeted sub-field on each.

Execute Custom Action (ExecuteCustomAction, 106) lets one reaction run a Local- or External-level custom action on another entry (or entries, or none at all) — the automation equivalent of a user pressing a button, except it is driven by a trigger rather than a click. It can never target a UI-level custom action; those only run from a button (see Custom action type).

Configure it in up to three steps — the diagram shows how Scope is chosen when the target is contextual:

flowchart TD
    A[Execute Custom Action] --> B{Contextual target?}
    B -->|No| C[Runs once, no target entry]
    B -->|Yes| D{Choose Scope}
    D -->|Self| E[Current entry, if entity-compatible]
    D -->|Relation| F[Follow a relation to the target]
    D -->|Expression| G[Evaluate an expression]
    D -->|Pointer| H[Resolve a pointer, e.g. Current User]
    D -.->|Reference — legacy| I[Follow a reference field]
  1. Custom action — pick one from a searchable dropdown of the callable custom actions in the current module, grouped Local Actions (owned by an entity in this module) and External Actions (owned by an entity in another module, labelled by that module’s name). UI custom actions are never offered.
  2. Scope — shown only when the chosen custom action is contextual (see Custom action type and Contextual); a non-contextual action has no target entry, so this step is skipped and the action runs exactly once. How the target entry (or entries) is found:
    • Self — run on the current entry. Offered only when the current entity matches the custom action’s own entity — including when the current entity is a Virtual Proxy standing in for it, in which case the action runs on the entry the proxy represents.
    • Relation — follow a relation from the current entry to the target entry (or entries). Works both ways: an outgoing relation resolves to a single target, an incoming one to every entry that references back.
    • Expression — evaluate a code expression against the trigger context; every entry it resolves to must belong to a compatible entity or the action fails as a configuration error, so point it at exactly the entity you mean.
    • Pointer — resolve a context pointer (for example the current user) to the target entry.
    • Reference (legacy) — follow a reference field on the current entry to the target. Still fully functional for existing reactions and direct API use, but the builder no longer offers it for new configurations — use Relation instead.
  3. Parameters — shown whenever the chosen custom action has Parameters enabled (its own Ask User toggle — see Custom action type), regardless of whether Scope is also shown. Bind each parameter the same way you map any action value: Manual (a fixed value), Dynamic (a field on the entry that fired this trigger), Expression, or Pointer. Binding is per call, so the same custom action can be invoked from two different Execute Custom Action actions with different Parameter values. An unbound parameter is not an error — it is simply passed empty.

What happens when it runs. The action resolves the target entries for the chosen scope (or none, for a non-contextual action), computes any bound Parameter values, then raises the very same custom-action event that a system button raises. The existing custom-action consumer picks it up and runs the target custom action once per target entry, each in its own isolated context — the target reaction sees only that entry’s own data, not the calling reaction’s context. The action’s output records how many entries it dispatched to (1 for a non-contextual dispatch).

Configuration failure modes to know:

  • A custom action that does not exist, is not of type Local or External, or is disabled is rejected when you save the reaction — an Execute Custom Action can never target a UI-level custom action.
  • Self scope across entities is rejected at save time — unless the current entity is a proxy for the custom action’s entity, saving fails.
  • Reference/Relation scope without a target is a configuration error. Saving is rejected if no reference field (or relation) is set.
  • Parameters are rejected outright if the target custom action doesn’t have Parameters enabled — you cannot bind values a non-parameterized action has no slot for.
  • Resolving no target entries is not an error. If Relation resolves to nothing, the action succeeds and simply dispatches nothing; the reaction is not failed. If you expected work to happen, check the dispatched count in the execution history rather than looking for an error. Expression and Pointer are stricter: if what they resolve to isn’t a compatible entity, the action fails outright rather than silently skipping it.

Set / Remove Permission actions Since 1.10

Section titled “Set / Remove Permission actions Since 1.10”

Two action types let a reaction manage access permissions — the same grants an administrator sets on the permission screens. Set Permission (SetPermission, 31) grants a level on a resource to users or groups; Remove Permission (RemovePermission, 32) revokes their grant. Typical uses are giving a request’s assignee access to a report when a step is reached, or revoking a member’s module access when their record is archived. Both write straight through data-service’s permission route rather than through a command, so — unlike the data actions — they never leave a run waiting (see What to expect from the execution model).

OptionMeaning
resource.entitlementTypeSystem, Module, DataEntity, DataView, GenericView (pages) or Report.
resource.entitlementIdThe resource id — required for every type except System, where it must be absent.
principal.kindUSER or GROUP.
principal.sourceWhere the principals come from, configured like the User Activation Toggle source: a fixed reference, or a field path in the trigger context. One source may resolve to several principals.
levelSet only — the access level to grant.

A reaction may grant only these levels; Restricted and None are never grantable:

ResourceGrantable levels
SystemViewer, Developer, Editor, Admin
Module, DataEntityViewer, Developer, Editor
DataView, GenericView, ReportViewer

A missing or malformed option — no resource, an unknown type, an entitlementId on System or missing elsewhere, no principal, a kind other than USER/GROUP, an invalid source, or (for Set) a missing or non-grantable level — is a save-time validation error (missingRequired / invalidData) naming the offending option path.

A reaction cannot grant more than the person who saves it. A reaction runs as the system, so saving one would otherwise be a privilege-escalation path. When a reaction is created or updated, every new or changed permission action is checked against the saving user’s own effective access on that action’s resource: Set needs at least the level it grants, Remove needs Admin. A refusal is a validation error with code PERMISSION_ACTION_EXCEEDS_SAVER_ACCESS and details {entitlementType, entitlementId, requiredLevel} (the builder shows a translated message); if the saver’s access cannot be read, the save fails closed. Unchanged permission actions are skipped only when the update is purely descriptive (name or description); any other change — triggers, criteria, other actions, re-enabling the reaction — re-checks them all, because the grant would fire in new circumstances. The check is made at save time only: an already-saved reaction keeps granting what it was saved with.

At run time, each resolved principal is handled on its own:

  • Set never lowers. A principal who already holds a higher grantable level directly on the resource is skipped with ALREADY_HIGHER. Remove writes level None.
  • A user refused on a Module or DataEntity grant because they have no system access yet (USER_MUST_HAVE_VIEW_ACCESS_FIRST) is first onboarded at System Restricted and the write is retried once. Groups are not onboarded.
  • A resolved principal of the wrong kind fails with PRINCIPAL_KIND_MISMATCH, any other upstream error with UPSTREAM_ERROR; a source that resolves to nobody fails the whole action with NO_PRINCIPALS.
  • The action output is {applied[], failed[{principalId, code}], skipped[{principalId, code}]}. The action counts as failed when failed is non-empty, the run continues, and later actions can read the output like any other.

The guard and the never-lower rule read access through two internal data-service routes (GET /v1/access/effective-level and GET /v1/access/direct-level), callable by platform services only.

Execute Function output in chained reactions Since 1.10

Section titled “Execute Function output in chained reactions Since 1.10”

A function’s answer can now drive what happens next. The Execute Function action exposes three output fields in the reaction schema — success (boolean), message (text) and result (an open JSON object) — so later actions in the same reaction, and reactions chained onto its success or failure, can bind them like any other action output. Because result has no declared shape, the builder’s pickers let you bind a key below it (for example result.customer.id) instead of only the whole object, and the engine resolves that path inside the returned object when the reaction runs. Keep the function’s return shape stable: the bindings are paths into it.

Entry-affecting handlers extend BaseEntryActionHandler, which reads options.actionSuccessCriteria (ActionSuccessCriteriaEnum, default Any=0; All=1). With Any, the action is considered failed only when there are errors and no entries succeeded; with All, any error fails the action. On success, affected entries are recorded on the ActionResult.effectedEntities and the output is written back into the trigger context via setActionOutput, so subsequent actions can reference it.

Every action in a reaction's actions[] has the same envelope; only options changes with actionType:

{
"id": "<uuid>",
"normalizedName": "notify_requester",
"name": {"en": "Notify requester"},
"actionType": 100,
"resultField": "",
"options": { }
}

resultField is set at run time. Send it as an empty string (""); a null read back from the API is rejected on write.

One action per reaction. The API stores an array, but the save-time validation is written for a single action per reaction, and the builder edits one. Model a sequence as separate reactions chained with ReactionSucceeded (see Chaining reactions).

Value mappings — EntryActionOptionsValue

Section titled “Value mappings — EntryActionOptionsValue”

Used by values (create/update entry, block items), parameters (Execute Custom Action) and schemaMapping (Announce Event):

{"fieldName": "status", "valueType": 2, "value": {"id": "<category option id>"}}
valueType (FieldValueTypeEnum)value holdsExample
0 NotSet · 1 Defaultnothing / the field default—
2 Manuala literal in the target field's stored shape (a category is {"id": "<option id>"}, a reference is {"dataEntity": "...", "dataEntry": "..."})true, "Open", {"id": "…"}
3 Dynamica path in the trigger context: value.<field> on the entry that fired, or a full scope.entries.<entity>.value.<field> path"value.requester"
4 ExpressionJavaScript evaluated with value (the trigger entry's value — also when the action updates another entry) and scope"(value.reopen_count || 0) + 1"
5 Pointeran @-pointer, see below"@now()"

A block sub-field is addressed by its bare name inside a block action ("level", not "escalation_event.level").

A pointer value starts with @. A pointer written with parentheses runs against a scope that also provides thisReference; a pointer written without them runs as scope.<name>() against the default scope only.

PointerResolves to
@thisReference(){dataEntity, dataEntry} of the entry that fired. The parentheses are required — bare @thisReference resolves to nothing.
@me / @me() · @current_user()the acting user (SYSTEM executor: the system user)
@now()the current ISO datetime
@today('+7d')a date-only string; the offset must be signed (+/-), units d w M y h m s

Email, notification, SMS, Call API and custom-function actions fill {{token}} placeholders from tokensMap, an object keyed by token name:

"tokensMap": {
"ticket_no": {"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"},
"greeting": {"type": 0, "source": "Hello"}
}
type (TokenSourceType)source holds
0 Fixedthe literal text
1 Fielda context path — scope.entries.<entity normalizedName>.value.<field>; in a chained reaction scope.entries._<triggerId>_event.value.<field> or scope.entries._<triggerId>__<actionId>_action.value.<field> (hyphens in the ids replaced by _)
2 ExpressionJavaScript evaluated against the context
3 Pointeran @-pointer

Rules enforced on save when template is inline (an object): the map's keys must equal the template's tokens exactly (INVALID_TOKENS_MAP), and every entry needs type (Required parameter tokensMap.<i>.type is missing). When template is a stored template id, nothing is checked on save: a token you do not map is sent as its literal {{name}}.

{"sourceType": 0, "source": {"type": 1, "value": "value.requester"}}
{"sourceType": 1, "source": {"type": 0, "value": {"dataEntity": "GROUP", "dataEntry": "<group id>"}}}
{"sourceType": 4, "source": {"type": 0, "value": "ops@example.com"}}
FieldValues
sourceType — email (EmailSourceType)0 User · 1 Group · 2 DataCollection · 3 OrgUnit · 4 Manual (an address)
sourceType — notification (StepOwnerType)0 User · 1 Group · 2 DataCollection · 3 OrgUnit
source.type (StepOwnerSourceType)0 Fixed (a ReferenceProperty, or an address for Manual) · 1 Dynamic (a field path) · 2 PreviousOwner · 3 Expression

Email uses toRecipients / ccRecipients / bccRecipients; notification uses recipients. A wrong key name addresses nobody, silently.

Choosing the entry to write — updateEntryMode and entryToUpdate

Section titled “Choosing the entry to write — updateEntryMode and entryToUpdate”
updateEntryModeentryToUpdate
0 Self — the entry that firedomit it. {"mode": 0} means Fixed and then requires value (Required parameter options.entryToUpdate.value is missing).
1 Reference — an entry a reference field points atrequired. {"mode": 1, "fieldName": "<reference field>"} (Dynamic) or {"mode": 0, "value": {"dataEntity": "…", "dataEntry": "…"}} (Fixed)
2 Relation — entries reached through a relationrequired, with relationId (and targetEntityId when the relation has several sources)

actionSuccessCriteria: 0 Any (default — fails only if no entry succeeded) · 1 All.

// 10 CreateDataEntry — entitySource: {"entityId"} or {"fieldName"} (entity taken from a field)
{"entitySource": {"entityId": "<entity id>"},
"values": [{"fieldName": "request", "valueType": 5, "value": "@thisReference()"},
{"fieldName": "message", "valueType": 2, "value": "Auto-acknowledged"}]}
// 11 UpdateDataEntry — self
{"updateEntryMode": 0,
"values": [{"fieldName": "closed_at", "valueType": 5, "value": "@now()"}]}
// 11 UpdateDataEntry — through a reference field
{"updateEntryMode": 1, "entryToUpdate": {"mode": 1, "fieldName": "parent_contract"},
"values": [{"fieldName": "last_request", "valueType": 5, "value": "@thisReference()"}],
"actionSuccessCriteria": 0}
// 12 ArchiveDataEntry — sourceMode 0 CurrentEntry · 1 RelatedEntries · 2 DataQuery
{"sourceMode": 1, "relation": {"relationId": "<relation id>"}, "querySource": null}
// 16 DeleteArchivedEntry — sourceMode 0 CurrentEntry · 1 Reference · 2 Relation · 3 DataQuery
{"sourceMode": 3, "relation": null, "querySource": {"dataEntity": "<entity id>", "dataEntry": "<saved query id>"}}
// 2 ArchiveDataEntity
{"entitySource": {"entityId": "<entity id>"}}

Block actions take the Update Data Entry options plus blockField; update and delete add a row criteria.

// 13 CreateBlockItem — sub-fields by BARE name
{"updateEntryMode": 0, "blockField": "sla_event",
"values": [{"fieldName": "level", "valueType": 2, "value": 1},
{"fieldName": "breached_at", "valueType": 5, "value": "@now()"}]}
// 14 UpdateBlockItem / 15 DeleteBlockItem (Delete has no "values")
{"updateEntryMode": 0, "blockField": "sla_event",
"criteria": {"type": 3, "onFailure": {"type": 0}},
"values": [{"fieldName": "acknowledged", "valueType": 2, "value": true}]}
criteria.typecriteria.value
0 FixedIndexpositions and/or row __ids (a number, a string, or an array of them)
1 Fielda field path that resolves to such a value
2 Expressionan expression that evaluates to such a value
3 LastRecord · 4 AllRecords—

onFailure.type: 0 Skip · 1 Fail · 2 FallbackToLastOrFail · 3 FallbackToLastOrSkip.

// 20 MoveWorkflowToStep
{"workflowId": "<workflow id>", "targetStepId": "<step id>"}
// 21 ExecuteWorkflowAction — one entry per step the reaction may automate;
// only the entry matching the entry's CURRENT step runs, then the engine
// keeps automating while the next step also has a matching entry.
{"actions": [{"workflowId": "<workflow id>", "stepId": "<step id>", "actionId": "<action id>"}]}
// 22 ChangeCurrentStepOwner — owner shape as a workflow step owner
{"type": 1,
"source": {"type": 0, "value": {"dataEntity": "GROUP", "dataEntry": "<group id>"}},
"ownerOptions": {"allowChangeOwner": true, "mode": 0, "accessPermission": 1, "selectionCriteria": 1},
"fallbackOwner": {"allowChangeOwner": true},
"permanentChange": false}

Execute Workflow Action is how a reaction "clicks" a workflow button — for example an SLA reaction that closes an entry left in Resolved. Listing targetStepId (Move) or actions (Execute) in the action's overridableOptions lets the user pick them at run time instead.

// 100 SendNotification — channels: only 0 (InApp)
{"channels": [{"type": 0}],
"recipients": [{"sourceType": 0, "source": {"type": 1, "value": "value.assignee"}}],
"template": "<NOTIFICATION_TEMPLATE id>",
"module": {"dataEntity": "DataModule", "dataEntry": "<module id>"},
"tokensMap": {"ticket_no": {"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"}},
"customRedirection": {"enabled": false}}
// 101 SendEmail — from.mode 0 System · 1 ReactionExecutor · 2 Custom (+ customFrom recipient)
{"toRecipients": [{"sourceType": 0, "source": {"type": 1, "value": "value.requester"}}],
"ccRecipients": [], "bccRecipients": [],
"template": "<EMAIL_TEMPLATE id>",
"tokensMap": {"ticket_no": {"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"}},
"from": {"mode": 0},
"link": {"enabled": true, "viewId": "<view id>"},
"attachments": [{"type": 1, "value": "value.contract_file"}]}
// 102 SendSms — recipients sourceType 0 Entity · 1 DataCollection · 2 Static; template is inline
{"recipients": [{"sourceType": 2, "source": {"type": 1, "value": "value.mobile_number"}}],
"template": {"content": "Ticket {{ticket_no}} was resolved", "tokens": [{"name": "ticket_no", "location": ["content"]}]},
"tokensMap": {"ticket_no": {"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"}},
"link": {"enabled": false}}
// 107 SendWhatsApp — an approved Meta template; parameters[i] fills {{i+1}}; recipients as Send SMS
{"recipients": [{"sourceType": 2, "source": {"type": 1, "value": "value.mobile_number"}}],
"templateName": "ticket_resolved", "language": "en",
"parameters": [{"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"}]}

template may also be inline instead of a stored template id — email {"subject", "body", "tokens"}, notification {"name", "title", "content", "icon", "tokens"}, each token {"name", "location": [...]} (for example ["subject", "body"] or ["title.en"]). Email attachments[].type: 0 Fixed (a stored file) · 1 Dynamic (a file field path). A Fixed attachment is a stored file the reaction now holds a reference to: if its temporary upload expired before the save, the save fails with FILE_EXPIRED (see Files in reaction options).

OptionHolds
recipientsthe same recipient shapes as Send SMS
templateNamethe name of an approved Meta template of the space's WhatsApp Business account
languagethe template's language code, e.g. en or ar
parameterstoken sources (Fixed, Field, Expression or Pointer, as in Token maps); item i fills the template body's {{i+1}}. May be empty.
  • Pick the template from the list. The builder lists the space's approved templates live from GET /api/reaction/v1/whatsapp/templates — [{name, language, category, bodyParameterCount}], never an AUTHENTICATION-category template, because the action always sends as category other. Calling it needs system View access or higher (an end user with only the Restricted floor is refused). It answers 409 whatsapp_not_configured when the space has no business account id or access token, and 502 whatsapp_provider_error with Meta's error code (never Meta's message or the token) when Meta fails. The form says which of these stopped the list from loading, flags a saved template that is no longer approved, and drops saved parameters beyond the picked template's variable count. The account settings are the whatsapp block of System Settings.
  • The save does not check the template against Meta. A wrong name, language or parameter count is not caught when the reaction is saved; give parameters exactly bodyParameterCount items.
  • What is sent. An empty value is sent as '' (positions are kept, since Meta rejects a missing parameter); a localized value is sent in the tenant's default language, not in the template's language; a masked sensitive value is sent as ****; newlines, tabs and runs of five or more spaces are collapsed to one space and the value is trimmed (Meta refuses them, error 132018). One message request goes out for all recipients; with no phone number resolved, nothing is sent and the action still succeeds.
  • Output: {templateName, recipientsPhoneNumbers}, readable by later actions and chained reactions.
// 90 CallApi — verb "GET" | "POST" | "PATCH" | "PUT" | "DELETE"; success = any 2xx
{"apiUrl": {"value": "https://api.example.com/tickets/{{ticket_no}}"},
"verb": "POST",
"headers": {"value": "{\"Content-Type\": \"application/json\"}"},
"body": {"custom": true, "customBody": {"value": "{\"ref\": \"{{ticket_no}}\"}"}},
"tokensMap": {"ticket_no": {"type": 1, "source": "scope.entries.tm_ticket.value.ticket_no"}}}
// 103 GenerateFileFromTemplate — retentionPeriod in days (omit = keep)
{"templateId": "<template id>", "retentionPeriod": 30,
"fileOutputName": {"type": 2, "source": "'Contract-' + scope.entries.contract.value.ref"},
"downloadFile": false}
// 104 ExecuteCustomFunction — resolved tokens reach the function as payload.parameters.<key>
{"functionId": "<function id>",
"tokensMap": {"customer": {"type": 1, "source": "scope.entries.order.value.customer"}}}
// 105 AnnounceEvent
{"announcementId": "<announcement id>",
"schemaMapping": [{"fieldName": "order_ref", "valueType": 3, "value": "value.ref"}]}
// 106 ExecuteCustomAction — scope 0 Self · 1 Reference · 2 Expression · 3 Relation · 4 Pointer
// Reference: entryToRun {mode, fieldName | value} · Relation: entryToRun {relationId}
// Expression: "expression" · Pointer: "pointer". Send only the chosen scope's setting,
// and no scope at all when the custom action is not contextual.
{"customActionId": "<CustomEvent reaction id>", "scope": 3,
"entryToRun": {"relationId": "<relation id>"},
"parameters": [{"fieldName": "reason", "valueType": 2, "value": "Escalated"}]}
// 200 NotifyZapier
{}

Call API: what the platform allows Since 1.8

Section titled “Call API: what the platform allows Since 1.8”

A Call API action is a server-side HTTP request built from your configuration, so the platform bounds it (security finding N-14):

RuleWhat you see
HTTP(S) onlyAny other scheme, or a URL that does not parse, fails the action with CALL_API_DESTINATION_BLOCKED.
No private or internal destinationsAn address in a private, loopback, link-local (cloud metadata included), CGNAT, multicast or reserved range, IPv4 or IPv6, fails the action. Host names are checked when they resolve, so a public name pointing at a private address is refused, and every redirect (at most 5) is checked again. Proxy settings are ignored. Only an operator can open a private destination, through the CALL_API_ALLOWED_PRIVATE_DESTINATIONS allow-list.
30-second limitThe whole exchange must finish within CALL_API_TIMEOUT_MS (default 30 s); a slowly trickled response times out too.
10 MiB size capRequest and response bodies, as recorded in the run's history, are capped at CALL_API_MAX_RESPONSE_BYTES (default 10 MiB); a larger response fails the action.
Tokens cannot add headersThe headers template is read as JSON first, then tokens are filled into each header name and value separately, so a token's value can never add or replace a header.
Platform headers winx-space-id and Content-Type: application/json are set by the platform and override yours.
Masked values Since 1.10A call whose URL, headers or body would carry a masked sensitive value fails instead of sending **** (see Sensitive-data access policy).

Reserved header names Since 1.10. x-shared-key, x-app-id, x-space-id and x-service (any case) are the platform's own. A headers template that names one is refused on save with 400 RESERVED_HEADER_NAME. A reaction saved before this check still runs: the reserved header is dropped at run time.

source.type (UserActivationToggleSourceTypeEnum): 0 Fixed (a ReferenceProperty) · 1 Field · 2 Expression · 3 Pointer (value is the path, expression or pointer).

// 30 UserActivationToggle — type 0 Activate · 1 Deactivate
{"source": {"type": 1, "value": "value.employee"}, "type": 1, "actionsSuccessCriteria": 0}
// 31 SetPermission (32 RemovePermission: the same without "level")
{"resource": {"entitlementType": "DataView", "entitlementId": "<view id>"},
"principal": {"kind": "USER", "source": {"type": 1, "value": "value.assignee"}},
"level": 0}

entitlementType: System (then entitlementId must be null) · DataModule · DataEntity · DataView · GenericView · Report. level: 0 View · 0.5 Developer · 1 Edit · 2 Admin, limited to the levels in Set / Remove Permission actions.

Reaction create/update validates the options and rejects the save, naming the offending path:

ErrorStatusCause
MUST_AUTOMATE_AT_LEAST_ONE_STEP400Execute Workflow Action with an empty or missing actions (and no actions override)
TRIGGERS_CAN_NOT_AUTOMATE_LAST_STEP400an actions[] entry on the workflow's last step
WORKFLOW_NOT_EXIST · WORKFLOW_STEP_NOT_EXIST · WORKFLOW_ACTION_NOT_EXIST404an id in Move / Execute options that is not on the entity
Required parameter options.entryToUpdate[.value | .fieldName | .relationId] is missing400see Choosing the entry to write
Required parameter tokensMap.<i>.type is missing · INVALID_TOKENS_MAP400see Token maps
Required parameter options.customRedirection.viewId is missing400Send Notification with customRedirection.enabled: true and no viewId
Required parameter options.entryToRun[.relationId | .fieldName | .value], options.expression, options.pointer400Execute Custom Action scope without its setting
missingRequired / invalidData on options.resource, options.principal, options.level, options.source400Set / Remove Permission and User Activation Toggle options
—422action type 0 or 1 (retired)
missingRequired / invalidData on eventConfig.entityId, eventConfig.triggerId, spaceScope400 / 422a ReactionSucceeded / ReactionFailed reaction that could never fire, or with a space scope other than Triggering Space. Since dev — see below
RESERVED_HEADER_NAME400a Call API headers template names a reserved platform header. Since 1.10 — see Call API
FILE_EXPIRED400the options reference a temporary upload (an email attachment, for example) that expired before the save. Since 1.10 — see Files in reaction options
STORAGE_SERVICE_UNAVAILABLE503file storage could not be reached while the save adds a file; retry. Since 1.10
REACTION_AUTHORING_FORBIDDEN403you lack Developer-or-higher access on the reaction's entity (create, update and delete). Since 1.8 — see Who may author a reaction

Event-config shapes used with these actions

Section titled “Event-config shapes used with these actions”
eventTypeeventConfig
1 DataEntryUpdated{"fields": [{"fullNormalizedName": "sla_breached"}]} — empty matches any change
3 WorkflowActionExecuted · 5 WorkflowStepExited[{"steps": [{"workflowId": "…", "stepId": "…", "actions": ["<action id>"]}]}]
4 WorkflowStepReached[{"steps": [{"workflowId": "…", "stepId": "…"}]}]
6 Timer{"timerOptions": {"repeat": {"expression": "*/5 * * * *", "options": {"timezone": "Asia/Dubai"}}}}
8 ReactionSucceeded · 10 ReactionFailed{"triggerId": "<reaction id>", "entityId": "<its entity id>"} — both are required to match, and triggerId must be a reaction defined on entityId. On 1.10 a reaction without them is stored and never fires; Since dev the save is refused (see below). Set spaceScope to Triggering Space only, see below
100 SlaTimeExceeded (reaction type: 1)[{"occurrencesConfig": {"startingAfter": 0, "repeatAfter": 0, "repetitions": 0}, "steps": [{"workflowId": "…", "stepId": "…"}]}]

Give a chained reaction the Triggering Space only. A ReactionSucceeded / ReactionFailed reaction runs on the original run's stored context and entry, which belong to the space that run executed in. Give it "spaceScope": {"rootSpace": false, "currentSpace": true, "otherSpaces": false}.

  • On 1.10 the platform does not enforce this. Any wider scope is expanded like for other reactions, and the chained reaction runs once per resolved space — each time with the original space's entry. With Primary + Triggering Scopes, a run that started in a non-root space fires the chained reaction twice; with All Scopes it runs in every space.
  • Since dev it is enforced. The chained reaction runs once, in the space the watched run ran in, whatever scope it stored (existing reactions need no change), and saving one with any other spaceScope is refused with a 422 naming spaceScope; an absent spaceScope is accepted.

More chained-reaction checks at save Since dev:

CheckResult
eventConfig.entityId or eventConfig.triggerId missing400, naming the missing one
triggerId is not an existing reaction, or is not defined on entityId422, naming eventConfig.triggerId
The lookup of the watched reaction itself fails (a database error)the save fails with that error, not as an invalid triggerId
Several reactions in one save come from the same relationevery one is validated (only the first used to be)
An Execute Workflow Action whose actions are asked of the user, followed by other actions or reactions in the same saveonly that action skips validation (the rest of the save used to skip it too)

Also Since dev: when reactions on two entities watch the same reaction, each entity runs only the chained reactions it defines; before, each one ran twice, once with the other entity.

For SlaTimeExceeded, startingAfter and repeatAfter are seconds and repetitions counts extra occurrences after the first: 0 fires once; 1 with repeatAfter: 0 fires twice at the same instant. On builds without the OP#28358 scheduler fix, an occurrence that is already due when scheduled (startingAfter: 0) is never delivered — set startingAfter to 120 there.

For a normal (non-timer) event the flow is:

  1. Bus event handler (handlers/events/**, extending BaseTriggerEventHandler) receives a domain event, resolves the defining DataEntity from data-service, and loads candidate triggers: dataReactionRepository.find({ 'definingEntity.dataEntry': entityId, disabled: false }).
  2. It computes direct triggers (sourceEntity.type !== Relation) and related triggers (see Related-entity triggers). Invalid triggers (validations.isValid === false) are skipped.
  3. Affected entries are prepared once as in-memory query sources shared by every runnable trigger (a temporary collection before 1.10 — see Criteria and query filter); then, for each trigger and each entry, the handler calls EventsHandler.handle(...). spaceScope is expanded via SpaceService.getDataReactionSpaceScope so the reaction can run across the configured spaces. Entries whose store differs from the entity’s write store are skipped.
  4. EventsHandler.handle validates the event type matches, runs the event matcher, merges any query into criteria, builds a TriggerContext, applies the criteria filter, then executes trigger.actions in order.
  5. Each action runs through EventsHandler.actionHandler, which enforces loop protection, records Prometheus metrics (osos_reaction_duration_seconds, osos_reaction_executed_total — Since 1.8), and invokes the handler.
  6. Results are aggregated into a TriggerHistory record (per-action ActionResults), stored via TriggerHistoryRepository. The full serialized context is cached in Redis under trigger:<triggerId>:context:<historyId> for 600s (10 min) — Since 1.10 only when a reaction is listening for this reaction’s result, and compressed; see Trigger-context storage — and a TriggerExecutedEvent is published on the bus.

Overall trigger status is logged as fully successful, partially successful, or failed based on the count of failed ActionResults.

TriggerContext (handlers/trigger.context.ts) is the shared state passed to every action. It holds the firing entity/entry, all entities/entries (including AskUser and related-source entities), and a per-action actions map of input/output. Notable behaviours:

  • Path resolution — getValueByPath / getFieldByPath resolve dotted paths, normalising legacy paths (value.name, or a bare field name) into the canonical scope.entries.<entity>.value.<field> form, and supporting relation traversal with the .:relation. / .:relation_<entity>. marker to hop across reference fields.
  • Action chaining within one trigger — after an action succeeds, its output is stored via setActionOutput, so a later action in the same reaction can read the previous action’s output (e.g. a created entry’s id).
  • Executor identity — calculateIsAdminModification sets isAdminModification when executorType is SYSTEM/MANAGER (or absent, for backward compatibility). For SYSTEM, the user id is forced to the system user and the delegatee is cleared, so writes run with system privileges.
  • triggerContextId — on the event config (BaseEventConfig.triggerContextId), selects a specific context entity for the actions to operate on instead of the entity that fired. (In 1.8, this moved from individual action options to the event config — the event owns the context, not the action.) Since 1.8.

A reaction’s spaceScope controls which spaces it executes in — expanded at dispatch by SpaceService.getDataReactionSpaceScope. In the builder the Execution Spaces options are Root Space, Triggering Space, Root Space and Triggering Space, All Spaces Except Root and All Spaces (rootSpace / currentSpace / otherSpaces combinations). This lets a single reaction fan its actions across the configured spaces instead of only the one where the event fired. A reaction chained onto another reaction’s success or failure is the exception: give it the Triggering Space only — on 1.10 a wider scope runs it once per space on the original space’s entry, and Since dev the scope is ignored at run time and refused at save (see Action options reference › Event-config shapes).

What to expect from the execution model Since 1.10

Section titled “What to expect from the execution model Since 1.10”

Since 1.10 the engine no longer holds a worker open while it waits for data-service to finish an action: a run is recorded as it goes and picked up again from where it was left. None of that machinery is something you configure, but three of its consequences are yours to design around.

  • Do not rely on ordering between entries in one batch. When a single action fans out over several entries, its commands can now be dispatched together, and may complete in any order. Ordering between actions in a reaction is unchanged — action 2 still runs after action 1 — but “entry A is written before entry B” was never promised and is now visibly untrue. Two commands in the same batch targeting the same entry are rejected before dispatch rather than raced.
  • A run survives a service restart and records its history — but it does not finish. If the automation service restarts mid-run (a deploy, a crash), the run is recovered and its execution history row is written for the actions that had already completed, instead of the run vanishing without a trace. Recovery writes that tail and stops: the actions it had not reached do not run, because reaction actions are not safe to replay blindly. Write later actions so they tolerate an earlier one simply never having happened — the same tolerance a mid-chain failure already demands.
  • A ReactionSucceeded / ReactionFailed trigger can fire twice for one recovered run. Recovery republishes the “this reaction finished” event, so a reaction chained onto another reaction’s success or failure may be triggered more than once for the same logical run. Make the chained reaction safe to run twice — have it check for the record it would create, or make its write idempotent — rather than assuming exactly one firing.

Nothing about how you configure a reaction changed: the same trigger events, the same action options, the same execution-history document, and the same metric names.

Reactions compose through events rather than direct calls:

  • Every completed execution publishes TriggerExecutedEvent. Reactions bound to ReactionSucceeded (8) / ReactionFailed (10) are matched by ReactionSucceededEventConfig / ReactionFailedEventConfig (entityId + triggerId), so you can wire “when reaction X on entity Y succeeds, do Z” (or a failure-handling branch). A follow-up reaction can read the triggering reaction’s inputs and outputs in its own action settings.
  • The AnnounceEvent (105) action publishes a named announcement; reactions bound to EventAnnounced (11) (matched by entityId + announcementId) run in response. schemaMapping carries data from the announcing context into the announcement’s schema, which downstream reactions can read. This decouples the publisher from its subscribers, even across entities. Since 1.8.
  • Data-modifying actions (create/update/archive entries) emit the ordinary DataEntryCreated/Updated/Archived events, which in turn can fire other reactions — the most common (and easiest to loop) chaining path.

The triggering reaction’s context is preserved for a limited time (see the Redis cache above) so a chained reaction can reuse it.

A ReactionSucceeded / ReactionFailed reaction must name both the watched reaction (triggerId) and the entity that defines it (entityId), and should be scoped to the Triggering Space only. On 1.10 neither rule is checked: a reaction missing one is stored and never fires, and a wider scope runs the chained reaction once per space. Since dev both are refused at save, the chained reaction always runs once in the space the watched run ran in, and when reactions on two entities watch the same reaction each entity runs only its own — see Action options reference › Event-config shapes.

A run the tenant’s monthly run limit refused publishes no “this reaction finished” event, so a ReactionFailed reaction does not fire on a refusal Since 1.10.

What a chained ReactionSucceeded / ReactionFailed reaction reads is the parent run’s serialized trigger context — often a few hundred kilobytes — kept for 10 minutes. Since 1.10 the engine writes it only when an enabled reaction is listening for that reaction’s result, and stores it gzip-compressed. If the engine cannot tell whether a listener exists, it stores the context as before. Two consequences for design:

  • The listener must exist and be enabled before the parent run finishes. A ReactionSucceeded / ReactionFailed reaction created or re-enabled afterwards finds no context for runs that already finished — the same as when the 10-minute window has expired.
  • A stored context that cannot be decoded is treated as no context: the chained reaction is skipped rather than run on missing fields.

The values history redaction masks are kept on the same condition, so a chained reaction redacts consistently with its parent. Operators can turn both behaviours off — OSOS_TRIGGER_CONTEXT_LISTENER_GATE (store every run’s context again) and OSOS_TRIGGER_CONTEXT_GZIP (store it uncompressed), both on by default. A reaction service older than 1.10 cannot read the compressed form, so during a rolling upgrade compression is kept off until every reaction-service pod runs 1.10.

Because data actions re-emit data events, a reaction can re-trigger itself. EventsHandler.actionHandler guards this: it counts existing TriggerHistory rows for the same traceId + spaceId + active triggerId + action.normalizedName, and if the count exceeds trigger.loopThreshold it aborts that action with a “preventing a loop” ActionResult (success:false).

loopThreshold defaults to 0, meaning the action runs once per trace. Raise it deliberately to allow a bounded number of self-re-executions. The correlation/trace id is propagated (and suffixed per-entry when a single event affects multiple entries), which is what ties an execution chain together for this count. If an expected action silently did not run, check whether the loop guard skipped it.

Workflow-step events are counted per step Since 1.4. For WorkflowStepReached and WorkflowStepExited reactions the count is taken per workflow step (each history row records the step): such a reaction legitimately runs once for every step a trace passes through, and a real loop has to revisit a step, so the guard still bounds it. Other event types are counted over the whole trace, as before.

A reaction whose sourceEntity is set fires from a different entity than its definingEntity. DataReactionSourceEntity has a type (TriggerSourceEntityTypeEnum: Self=0, Relation=1, AbsoluteEntity=2) and a sourceId. BaseTriggerEventHandler.findRelatedTriggersUsedAsSource resolves these in two directions:

  • Incoming relations — for the entity that fired, find relations targeting it, then find reactions whose sourceEntity.sourceId matches a relation id; fetch the referenced entries and run each reaction’s actions against them, exposing the source entry/entity in the context.
  • Outgoing relations — find reactions whose sourceEntity.sourceId regex-matches :<entityId> (an in-memory relation pointing at this entity), locate entries on the defining entity whose reference field points at the fired entry, and run for each. (Example in code: a User entity references OrgUnit; when OrgUnit fires, the User reaction runs for every user in that org unit.)

The reaction schema for the builder UI (which entities/fields are reachable in a trigger’s context) is served by SystemReactionController (see below).

A reaction runs as its own entity: its actions resolve field paths and write through that entity’s definition. Since 1.8 the engine enforces this explicitly — a reaction will not run against an entry that belongs to a different entity.

  • An entry whose entity differs from the reaction’s own entity is skipped, with a warning in the service log, instead of being run through the wrong entity’s field definitions.
  • For related-entity triggers, the entries pulled in through a relation are filtered per trigger down to that trigger’s own entity before they are fetched. This is what matters for a reference field that accepts more than one entity: previously every reaction sharing that relation received every referenced entry, whatever entity it actually belonged to.
  • A trigger whose defining entity cannot be resolved — a deleted entity, say — is skipped with a warning instead of failing the whole run, so the other triggers listening to the same event still execute.

No new error is raised for any of this. A foreign entry or an unresolvable entity is a logged skip, not a failure, so nothing appears in the reaction’s execution history — the reaction simply never runs for that entry. If a reaction seems not to have fired for some entries, look for skip warnings in the reaction-service log rather than for a failed action result.

All reaction endpoints require the Auth2 authentication strategy and are scoped by the injected spaceId.

Source: controllers/data-reaction.controller.ts.

Method & pathPurpose
POST /v1/reaction/{entity}Create a reaction on {entity}. Body excludes updateIdentifier, creationInfo, updateInfo, validations, definingEntity (server sets definingEntity from the path). Rejected with ImplicitReactionCreateException if it would create an implicit reaction.
GET /v1/reaction/{entity}List reactions for an entity (LoopBack filter), each row also carrying its execution/failure counts — see Execution/failure counts and run history. Since 1.10
GET /v1/reaction/{entity}/countCount for an entity (LoopBack where).
GET /v1/reaction/{entity}/{id}Get one, validated to belong to {entity}.
GET /v1/reaction/{entity}/{id}/historyOne page of a reaction’s recorded runs, newest first, as slim rows — system administrators only — see Execution/failure counts and run history. Since 1.10
PATCH /v1/reaction/{entity}/{id}Update. Optimistic concurrency: the body’s updateIdentifier must equal the stored one or it throws UpdateIdentifierConflictException; the server then rotates updateIdentifier to a new UUID.
DELETE /v1/reaction/{entity}/{id}Delete; blocked with ImplicitReactionDeleteException for implicit reactions.
GET /v1/reactionsList all reactions (cross-entity).
GET /v1/reactions/module/{moduleId}List the reactions defined on any entity within a module, optionally narrowed by a LoopBack filter. Since 1.8
GET /v1/reactions/custom-actions?moduleId={moduleId}The callable-action discovery endpoint behind the Execute Custom Action picker: lists the module’s callable Local/External custom actions, grouped local/external. moduleId is required. Since 1.8 — see Execute Custom Action.
GET /v1/reactions/{id}Get any reaction by id.
GET /v1/reactions/countCount all.

Non-existent entities return NotFoundException('ENTITY_NOT_FOUND'); a reaction that doesn’t belong to the path entity returns REACTION_NOT_FOUND. Writes go through ReactionWriterService (create/update/delete), not the repository directly.

Every reaction write (create, update, delete) needs two things: the tenant’s license must include administration, and you must have Developer access or higher on the reaction’s entity — the level that lets you edit the entity.

  • Refused: 403 REACTION_AUTHORING_FORBIDDEN, with details: {entityId}. If your access cannot be read, the write is refused too.
  • Imports follow the same rule. Each reaction in an imported file is checked against the person confirming the import; one they may not author is skipped and the rest of the import still lands. An update is judged on the entity the stored reaction belongs to, not the one in the request.
  • Delegation: a reaction created by a delegate, imports included, is judged on the delegated permissions.
  • Not checked for the platform’s own writes: service-to-service calls, implicit reactions, migrations, tenant provisioning and package installs.

A reaction that holds file ids in its options (a fixed email attachment, for example) now keeps a storage reference to them, like an entry does: a temporary upload is made permanent when the reaction is saved, and released when the reaction (or its entity) is deleted. Two save errors come with it:

ErrorWhenWhat to do
400 FILE_EXPIREDThe save names a temporary upload that expired before the save made it permanent. details lists {fileId, path, reason} per file — path such as actions[0].options.attachments[1].value, reason a localized “upload it again”.Upload the file again and save.
503 STORAGE_SERVICE_UNAVAILABLEFile storage could not be reached and the save adds a file. A save that adds no new file goes ahead.Retry.

A save refused this way leaves nothing behind — no timer is scheduled for it.

Execution/failure counts and run history Since 1.10

Section titled “Execution/failure counts and run history Since 1.10”

The Reactions tab shows, per reaction, how many runs have succeeded and how many have failed since the reaction was last modified. For system administrators either counter opens a side panel listing the individual runs behind it; for other users the counters are plain text.

GET /v1/reaction/{entity} returns every ordinary DataReaction field plus five read-only, computed ones:

FieldTypeMeaning
executedCountnumberEvery recorded run of this reaction, whatever its outcome — except runs the monthly run limit refused. All-time.
succeededCountnumberRuns in which at least one action ran and none of them failed — a partially-failed run does not count here. All-time.
failedSinceLastChangeCountnumberFailed runs recorded since the reaction was last modified (statsSince, below). A run counts once, however many of its actions failed.
statsSincestring (ISO-8601)When the failure-count window opens — the reaction’s last-modified timestamp (or its creation timestamp, for a reaction never modified since).
refusedCountnumberRuns the monthly run limit refused: recorded, but no action ran. Not part of executedCount. All-time. Since 1.10

These counts are computed fresh on every read rather than stored, so they can never drift from the underlying run history.

GET /v1/reaction/{entity}/{id}/history pages the runs behind a counter, newest first, and takes:

ParameterMeaning
outcomefailed, succeeded, refused (Since 1.10), or all (default). Any other value is a validation error.
from / toInclusive lower / exclusive upper bound on the run timestamp (ISO-8601). Not automatically clamped to statsSince — the dialog pre-fills from with it for the failure outcome, but a caller may widen it.
beforePagination cursor from a previous page’s nextBefore.
limitPage size; defaults to 10, capped at 100.

The response (items[], hasMore, nextBefore?) has no total count by design — the reaction’s badge already gives the total. The endpoint is restricted to system administrators (System Admin access with no None grant), and each item is deliberately slim: {id, timestamp, status, relatedTo}, where status is succeeded, failed or none under the same rule as the counters, or refused for a run the monthly run limit stopped and relatedTo carries the entry and its resolved title. The runs are those in the caller’s current space, whereas the counts span every space. The full stored record of a run — every action’s input and output — is served only by the detail route of the Reaction Logs API; this replaces the earlier design in which every row was the full record and any caller with reaction access could read it.

ReactionLogController (controllers/reaction-log.controller.ts) serves every recorded reaction run in the caller’s space — the API behind Administration → Monitoring → Reaction Logs and the Reactions-tab side panel. Both routes are system-administrator only, because the detail route returns each action’s stored payload.

Method & pathPurpose
GET /v1/reaction-logsOne page of runs, newest first. skip (any depth) and limit (default 20, max 100).
GET /v1/reaction-logs/{id}One run in full, plus its previous / next neighbours under the same filter.

Both routes take the same filters: reactionId; eventName (an EventTypeEnum key); actionType (an AutomatedActionTypeEnum key — a run matches when any of its actions has that type); status = failed, succeeded, refused or all (default); from (inclusive) / to (exclusive) ISO-8601 instants; doneBy (a user id or SYSTEM); search; and order = desc (default) or asc. search is case-insensitive in any tenant language and matches the reaction’s current name, its entity or module name, the actor’s full name, or an exact run or entry id; under 2 characters it is ignored. Malformed parameters are validation errors.

It reads the existing TriggerHistory records — there is no second store — so the Logs page, the counters and the side panel always agree on what failed and what succeeded. The total is counted under a 3-second budget and returned as null if that runs out; hasMore is always reliable. An entry with no index row comes back without _resolved, so a client can tell untitled from deleted or unknown.

Monthly run limit and refused runs Since 1.10

Section titled “Monthly run limit and refused runs Since 1.10”

A tenant’s plan can cap how many reaction runs it may start per UTC calendar month (maxReactionRunsPerMonth). The cap is enforced inside the automation service, so it is not an HTTP error: nothing the user did fails — the run simply does not happen.

  • A refused run is still recorded, with no action results and a refusal of {code: "REACTION_RUN_CAP_EXCEEDED", limit, used, period}. No action runs, and no “this reaction finished” event is published, so a ReactionFailed reaction does not fire on it.
  • Where to see it. Its status is refused in the run-history rows and the Reaction Logs API; filter with outcome=refused / status=refused; GET /v1/reaction/{entity} reports refusedCount apart from executedCount. The 1.10 web client does not yet show a refused counter or filter.
  • What counts. Every run started by an event, a timer or a custom action. Platform (implicit) reactions never count, and a redelivered message is counted once. A limit of 0 refuses every run. If the counter cannot be read, the run goes ahead: the cap meters, it does not guard.

The limit is part of the tenant’s plan. See Plan limits.

SystemReactionController — builder schemas

Section titled “SystemReactionController — builder schemas”

Used by the reaction builder to know what data is reachable in a trigger’s context. Source: controllers/system-reaction.controller.ts.

Method & pathPurpose
GET /v1/schema/{entity}/{trigger}Full reaction schema: event entity schema, per-action entity schemas, updateContextIds, and source entities.
GET /v1/schema/{entity}/event/{eventType}/{newTriggerId}Event entity schema for a given eventType.
GET /v1/schema/{entity}/event/{sourceType}/{sourceId}/{newTriggerId}/sourceSource entity schema for a relation source.
GET /v1/schema/{entity}/announcement/{announcementId}/source/{sourceType}Announcement (+ optional relation) source schema; newTriggerId and relationId query params required when sourceType is Relation.
GET /v1/schema/announcement/{announcementId}Announcement schema.

Announcements back the AnnounceEvent/EventAnnounced chaining pair. Source: controllers/announcement.controller.ts.

Method & pathPurpose
POST /v1/announcements/{entityId}Create an announcement for an entity.
PATCH /v1/announcements/{entityId}/{announcementId}Update.
GET /v1/announcementsList all.
GET /v1/announcements/{entityId}List for an entity.
GET /v1/announcements/{entityId}/{announcementId}Get one (scoped to entity).
GET /v1/announcements/by-id/{announcementId}Get one by id.

Each action produces an ActionResult (models/data-entity-action/action-result.ts) with action, actionType, actionName, success, optional resultId/error/output, traceId, spaceId, input, and effectedEntities. Errors are normalised by serializeOutputError (stack traces are only attached when NODE_ENV === 'development'). All results for one firing are persisted as a TriggerHistory document with eventName, triggerId, triggerName, relatedTo, doneBy, delegatee, timestamp, and the result[] array — this is the audit trail for automation.

Redacting secrets in reaction history Since 1.6

Section titled “Redacting secrets in reaction history Since 1.6”

The history stores each action’s input, output and error, which can include tokens and API credentials. These are redacted to **** before the row is written (also delivered to the 1.6 and 1.8 lines as an update — first on 1.6):

  • Values you flag. Each token-mapping line has a Redact in history checkbox (redactInHistory on the token source), offered on Call API, Execute Function, Send Email, Send Notification and Send SMS. The value that token evaluates to is masked wherever it appears in that run’s history.
  • Values read from sensitive fields are masked even without the flag.
  • Sensitive fields in the triggering entry’s snapshot. For Created / Updated / Archived / Restored events, sensitive fields (block sub-fields included) are masked by path in the entry value and in the value diff, and the search index is masked whole.
  • Well-known credential keys. Any key that, ignoring case, - and _, is authorization, proxy-authorization, cookie, set-cookie, x-api-key or x-app-token, or that contains token, secret, password or apikey; plus Bearer / Basic credentials and URL user-info inside free text.
  • Learned values. Once masked, a value is scrubbed wherever it reappears later in the run, including URL-encoded and JSON-escaped forms (up to 200 values per run; a value shorter than 4 characters is masked only where it is the whole value).

If redaction itself fails, the affected part is stored as {redacted: "REDACTION_FAILED"}, never raw. A chained ReactionSucceeded / ReactionFailed reaction redacts with its parent run’s secrets. Redaction is independent of the sensitive-data access policy: a Privileged reaction’s actions still receive real values — only the history is masked. Rows written before the upgrade are not rewritten.

Reaction history indexes and clean-up Since 1.10

Section titled “Reaction history indexes and clean-up Since 1.10”

Three data-service migrations make the history cheap to page and remove old leftovers. 1.10.0-a19 adds six TriggerHistory indexes (each filter key, then newest first) behind the Reaction Logs filters. 1.10.0-a32 adds a unique partial index on DataEntryHistory.sourceMessageId, so a redelivered entry-created / entry-updated message writes its entry-history row only once (rows written before it carry no message id and are outside the index). 1.10.0-a33 drops the orphaned trigger_<10 letters> collections that pre-1.10 criteria evaluation could leave behind — only names matching that exact pattern that no entity uses. A run that recorded no action stores result: [].

Where a failed reaction actually surfaces — and where it does not:

  • Reaction Logs Since 1.10. System administrators can browse every run in Administration → Monitoring → Reaction Logs (backed by the Reaction Logs API) and from the Reactions-tab counters, with each action’s stored input, output and error.
  • Nothing surfaces for the user who fired it. A reaction failure produces no error toast and no failed API response for the user whose action fired it. Outside Reaction Logs, the user-visible surface is the entry history: trigger executions (with per-action success) are included in GET /v1/entities/{entity}/entries/{id}/history and its /v2 counterpart when the caller is a system viewer requesting without a view, or when the data view sets entriesConfiguration.showTriggerHistory.enabled: true; the per-action error/input/output details additionally require showTriggerHistory.showTriggerDetails. Both settings are off by default.
  • Every execution is persisted. Success or failure, each firing writes a TriggerHistory document (see above) with the serialized per-action errors — failures live there, not on the DataReaction document and not on the entry’s value. This is what the entry-history endpoints read.
  • Service logs. A failed action logs Execution action '<name>' has failed, and an entirely failed firing logs Execution trigger '<event>' on '<entry>' entry has failed, in the reaction-service log.
  • A run that never happened Since 1.10. When the tenant has used its monthly run allowance, runs are recorded as refused and run no action — see Monthly run limit and refused runs.
  • Failure chaining is all-or-nothing. TriggerExecutedEvent is published after every execution, but a reaction bound to ReactionFailed fires only when every action in the execution failed; a partial failure fires ReactionSucceeded instead.
  • Metrics Since 1.8 — Prometheus counts every execution in osos_reaction_executed_total (labels reaction_type, reaction_id, entity_id, space_id, status) and times it in osos_reaction_duration_seconds.
  • What is not recorded: the audit service audits reaction definition changes (create/update/delete) only, never executions; and a criteria mismatch is a skip logged at info level with no history record. Conversely, a bad Dynamic value path in an action fails loudly into the history (INVALID_ENTRY_FIELD / Path "…" does not exist in the context.) — the TriggerHistory record is the only place that error is visible.

Behaviour corrections that change what a reaction does at run time. Those also delivered to published lines carry the earliest line.

  • Loop guard scoped to the workflow step Since 1.4 — see Loop protection.
  • A sub-workflow’s Entry-step action can run from a later trigger Since 1.4. Every sub-workflow Entry step used to be skipped, so no reaction could ever run a sub-workflow’s first step. The move that starts the sub-workflow still does not auto-submit its Entry step, but a run fired by a later, unrelated event (On Update, a custom action, a schedule) now runs it, as a main-workflow Entry step always did.
  • Workflow metadata can be mapped Since 1.4. When the trigger entity has workflows, the reaction schema exposes _metaCurrentSteps.*, _metaWorkflowHistory.* and _metaAdhocSteps.*, so a mapping such as Requester ← current step owner no longer fails with INVALID_ENTRY_FIELD or shows an empty picker — including in configurations saved earlier.
  • Reassigning a step to one user keeps the step’s group Since 1.4.
  • Block-item actions no longer succeed silently Since 1.4 (also delivered to the 1.6 line as an update). A Create / Update / Delete Block Item action in Reference or Relation mode that resolves no target entry now fails with NO_ENTRIES_TO_UPDATE_FOUND instead of reporting success with an empty output.
  • In / Not In accept a single reference or category Since 1.10. A criterion such as assignee In scope.me(), or one whose value is a single reference or category object, used to match nothing; the value is now treated as a one-item list, and a null element in a reference list no longer throws.
  • SMS actions are recorded as SendSms Since 1.10. Every SMS action used to be stored — and shown in Reaction Logs — as SendNotification, so an actionType=SendSms filter matched nothing. Runs already stored keep the old type.
  • An unresolvable saved query fails closed Since 1.10. A reaction scoped by a saved query used to run with no filter when the query could not be loaded or had no applicable criteria — a Timer reaction then fanned out over every entry of the entity. Now a deleted query (a non-retryable 4xx), a failed response or a query with no applicable criteria skips the reaction (logged at error level), and any other failure (network, 5xx, 408 / 429) is retried.

The following features carry a milestone badge:

  • AnnounceEvent action + EventAnnounced trigger — Since 1.8.
  • DeleteArchivedEntry action — Since 1.8.
  • Outgoing related-relation triggers — Since 1.8.
  • Event-level triggerContextId (moved from action options to the event config) — Since 1.8.
  • WorkflowStepOwnerChanged (14) trigger event (“on owner changed”), with its owner-change-type and step filters — Since 1.8.
  • Custom action type and Contextual on the custom-action trigger (replacing the UI Event toggle) — Since 1.8.
  • Custom action type values renamed Module/Internal → Local/External (UI unchanged), one-way — Since 1.8.
  • ExecuteCustomAction (106) action (“Execute Custom Action”), initially Self/Reference scope only, then widened to add Relation/Expression/Pointer scope, Parameter binding, and proxy-entity-aware resolution — Since 1.8.
  • GET /v1/reactions/custom-actions?moduleId= — the callable-action discovery endpoint behind the Execute Custom Action picker — Since 1.8.
  • System buttons can only fire UI-level custom actions (a Local/External binding is rejected with a 403 at execution) — Since 1.8.
  • Entity isolation — a reaction never runs against an entry of another entity — Since 1.8.
  • GET /v1/reactions/module/{moduleId} — Since 1.8.
  • ReactionFailed (10) and DataEntryRestored (12) trigger events — absent from EventTypeEnum on the 1.4 and 1.6 lines — Since 1.8.
  • Reaction execution metrics (osos_reaction_executed_total, osos_reaction_duration_seconds) — Since 1.8.
  • sensitiveDataAccessPolicy on a reaction (Prohibited / Privileged / User-Based / Auto), with User-Based rejected on an automatic trigger — Since 1.10. See Sensitive-data access policy.
  • Update Data Entry runs again under a masking policy — the guard is scoped to the value this write introduced instead of the whole entry — Since 1.10.
  • Group owner titles resolve in reaction tokens (_metaCurrentSteps[n].originalOwner), where they previously rendered empty — Since 1.10.
  • Durable, resumable execution — a batch’s entries may complete in any order, a run interrupted by a restart writes its history and stops, and the reaction-finished event is at-least-once — Since 1.10. See What to expect from the execution model.
  • DataReaction.description — an optional, localized description field on a reaction — Since 1.10.
  • Execution/failure counts on the reaction list, and a new run-history endpoint (GET /v1/reaction/{entity}/{id}/history) — Since 1.10. See Execution/failure counts and run history.
  • Reactions tab redesign — search, meta-data filter, sort, grouping, an Executed/Not Executed status filter, and an expanded-row Description/Scope — Since 1.10. See The Reactions tab.
  • Repeatable-block write fixes — a second Create Block Item action on the same block now appends instead of overwriting, and a single-sub-field Update Data Entry write on a repeatable block no longer collapses its other rows — Since 1.10. See Repeatable-block write fixes.
  • Update Data Entry reaction writes can opt into the same conflict-retry protection as a direct entry write, behind a feature flag — Since 1.10. See Reaction-driven writes gain the same protection on Data Modeling: Entities.
  • SetPermission (31) / RemovePermission (32) actions, with the save-time guard that a reaction cannot grant beyond its saver — Since 1.10. See Set / Remove Permission actions.
  • Execute Function output (success, message, keys below result) bindable by later and chained reactions — Since 1.10. See Execute Function output in chained reactions.
  • CreateDataEntity / UpdateDataEntity retired — refused with 422 on save, skipped at run time — Since 1.10.
  • Criteria evaluated over an in-memory $documents source instead of a temporary collection — Since 1.10. See Criteria and query filter.
  • Trigger context stored only for a listening reaction, and compressed — Since 1.10. See Trigger-context storage.
  • Run-history endpoint restricted to system administrators with slim rows, and the system-wide Reaction Logs API (GET /v1/reaction-logs, GET /v1/reaction-logs/{id}) — Since 1.10. See System-wide Reaction Logs API.
  • Redacting secrets in reaction history — Since 1.6. See Redacting secrets in reaction history.
  • Reaction-history indexes and temporary-collection clean-up — Since 1.10. See Reaction history indexes and clean-up.
  • Runtime corrections — loop guard per workflow step, sub-workflow Entry step, workflow-metadata mapping, reassign keeps the group, block-item actions fail instead of silently succeeding (Since 1.4); In / Not In single values, SMS recorded as SendSms, saved-query fails closed (Since 1.10). See Runtime corrections.
  • Authoring a reaction requires Developer access or higher on its entity (403 REACTION_AUTHORING_FORBIDDEN), imports included — Since 1.8. See Who may author a reaction.
  • Call API limits — private and internal destinations refused, 30-second limit on the whole exchange, 10 MiB body cap, tokens cannot add headers — Since 1.8; reserved platform header names (400 RESERVED_HEADER_NAME) — Since 1.10. See Action options reference › Call API: what the platform allows.
  • Send WhatsApp (107) action with the approved-template picker — Since 1.10. See Action options reference › Send WhatsApp options.
  • File references in reaction options (400 FILE_EXPIRED, 503 STORAGE_SERVICE_UNAVAILABLE) — Since 1.10. See Files in reaction options.
  • Monthly run limit with refused runs and refusedCount — Since 1.10. See Monthly run limit and refused runs.
  • A duplicated reaction can change its event, and an absolute-entity source the new event rules out falls back to Self — Since 1.8. See Defining a reaction.
  • Chained reactions: Triggering Space enforced, impossible chains refused at save, each entity runs only its own chained reactions — Since dev. See Action options reference › Event-config shapes.

The rest of the engine is Long-standing and predates the 1.2 milestone, so it carries no “Since” badge — including loopThreshold, SlaTimeExceeded, incoming relation-source triggers, and NotifyZapier.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27