1. Home
  2. Creating New Objects/Fields
  3. Managing Triggers and Trigger Sets
  1. Home
  2. Lab Management
  3. Managing Triggers and Trigger Sets

Managing Triggers and Trigger Sets

In Uncountable, triggers automate workflow actions, such as scanning a barcode, creating a recipe, or scheduling a calendar event. Each trigger defines when it runs and what it does.

Triggers are organized into trigger sets. A set can be attached to one definition or shared across several definitions in the same schema.

Some platform-provided actions are also managed through trigger sets. For example, default actions on the Lab Tasks page, such as archiving or assigning tasks, appear in a Default Task Actions trigger set so admins can review and customize those behaviors from the same trigger configuration workflow.

Where to manage triggers

In Form Admin:

  • Trigger Sets is where admins create triggers and organize them into sets to attach to definitions.
  • Triggers lists triggers across the schema and helps find trigger reference names. Create new triggers from within a trigger set, not from this tab.

How a trigger works

Each trigger has two parts:

  • When: Defines when the trigger runs.
  • Actions: Defines what it does. A trigger can include multiple actions.

Typical setup

  1. Create or open a trigger set.
  2. Add a trigger and choose when it runs.
  3. Add the actions it performs.
  4. Optionally add constraints, an entity action, or a reference name.
  5. Attach the trigger set to a definition if it is not already linked.

Creating a New Trigger Set

To create a new trigger set, you have two options:

  • Create a trigger set linked to a specific definition:
    • Navigate to the definition’s Triggers tab.
    • Click “Create Trigger Set” (A).
    • The set will be created with a default name based on the definition.
    • Note: You can also create a shared trigger set from this page (B).
  • Create a shared trigger set for use across multiple definitions:
    • Go to the Trigger Sets tab on the Form Admin page.
    • Enter a name and click “Add Trigger Set”.
  • Either method will navigate you to the new trigger set page. There, click Add Trigger Set to create a new trigger. Within the side panel, configure the following:
    1. Name (A): Add a name for the trigger.
    2. When (B): Set when you want the trigger to fire. Options include:
      • Begin Phase: Fires when an entity enters a specific phase.
      • Complete Draft: Fires when the entity is submitted.
      • Create: Fires when a new entity is first created.
      • Explicit: Used for configuring entity actions and action buttons and fires only when an the action or action button are explicitly selected.
      • Modify Field: Fires when a select field is modified.
      • Sign Entity: Fires when the entity is signed, such as when a notebook is locked and signed.
    3. Actions (C): Select which actions you want the trigger to automate. A trigger can have multiple actions, all of which will be initiated when the trigger is fired. Actions run in the order listed, and each action has its own settings.

Available trigger actions: For what each action does, such as setting values, creating tasks, sending emails, looping over records, and running other triggers, refer to Trigger Actions.

  • Within the side panel, users can also add additional configuration settings within the following sections:
    • Entity Actions: To create an action button for that trigger, it must be configured as an entity action within this section. To configure, select an entity action behavior and then define the entity type to enable the button for. To learn more, refer to Action Buttons.
  • Constraints: Add optional constraints, or conditions which must be met before the trigger can fire. For example, using a Phase Match constraint, users can instruct the platform to only fire the trigger if an entity is in a specific workflow phase.
  • Advanced: Use this section to add a reference name, if needed.

Adding Trigger Sets in Definitions

If you have created a trigger set associated with a definition, all triggers within that set will be fully functional on any entity created using that definition.

If you created a shared trigger set, they can now be attached to definitions. To do so, take the following steps:

  1. Navigate to a Definition page of the Form Admin.
  2. Search for and select a definition.
  3. Access that definition’s Triggers tab.
  4. Use the Triggers tab to link the definition to a shared trigger set.
  5. When a trigger set is linked, all triggers inside it will apply to all entities created using that definition.

Triggering Actions with Action Buttons

In addition to running automatically, triggers can also be fired manually by users through Action Buttons. Action buttons appear as clickable buttons either in the top toolbar of an entity page or embedded directly within the entity form. These buttons make it easy for users to initiate predefined automation with a single click.

Action buttons are configured at the definition level using the Actions tab. Each button is linked to a trigger (typically one with a "when" value of explicit) via its reference name.

To learn more about setting up action buttons, refer to Action Buttons.

Triggers configured as entity actions can also be run from Bodie AI chat when they are tagged Accessible to Bodie. Ask Bodie to run the trigger by name, and it executes every action in the trigger.

Action button at the top of a lab request form

Action button embedded directly in a lab request


Viewing a Trigger Set in the Flow Graph

The trigger flow graph shows the triggers in a trigger set and how they connect, making large trigger sets easier to read and edit.

Trigger flow graph with the outline pane

  • Layout: A trigger set opens with its first trigger expanded and in view. Triggers that call one another are drawn as a call tree, from top to bottom, and triggers without calls are arranged in lanes by what they fire on. Every call between triggers is shown.
  • Outline pane: The outline pane lists every trigger and action in graph order and can be searched by name. Selecting a row moves the view to that action and highlights the path that leads to it.
  • Expanding triggers: One trigger is open at a time and expands in place. Branch cases are labeled Then, Else If, and Else.
  • Editing: Select + to choose an action and add it at that point in the trigger. New or pasted triggers appear on the canvas immediately, and Delete is available in the card menu.

Debugging Triggers with Execution Traces

Execution traces show which triggers and actions ran, in what order, and how long each one took. Traces are recorded when a trigger runs on an entity in debug mode or on a schedule, and can be viewed as an interactive flame graph in which each block represents a trigger or action and its width reflects its duration.

How to view a trace:

  1. Run the trigger on an entity while the entity is in debug mode.
  2. Open the trigger in Form Admin.
  3. In the Execution Traces section, find the run to examine and select … > View Trace.
  4. Select the Trace Flame Graph tab to see all triggers and actions that ran.
  5. Click any block to zoom in, and click Reset to return to the full view.

Trace flame graph for a trigger execution


Best Practices for Triggers and Trigger Sets

  • Copy Before Editing: If you need to change a trigger set that’s already in use, duplicate it first to avoid affecting live workflows.
  • Use Explicit Triggers for UI Actions: Only triggers with a “when” value of explicit can be used with entity actions or buttons.
  • Keep It Organized: Use clear naming conventions for triggers and sets so it’s easy to understand and maintain your automation logic.
Updated on October 22, 2026

Was this article helpful?

Related Articles