Skip to main content

Alert Actions

Every alert has one or more actions. When a record meets the alert's filter, each action of the alert is run for that record, subject to its One-Time and Re-enable settings. This page describes the action types and their fields. Creating the alert itself is described in Creating an Alert.


Adding an Action​

  1. On the Create Alert or Update Alert page, click Add above the Actions table. The Add Action panel opens from the right.
  2. Select the Action Type (Email by default). The fields of the panel change according to the type.
  3. Fill in the fields and click Save in the panel. The action is added to the table.
  4. Save the alert with Save on the alert page. Actions are stored only when the alert is saved.

Use the pencil button of a row to open the Update Action panel, and the trash button to remove the action after a confirmation.


Action Types​

Action TypeWhat it doesAvailable for
EmailSends an e-mail to each recipient.All functions.
NotificationCreates an in-app notification for each recipient.All functions.
Open Work OrderOpens a new work order for the matching record.All functions, when the Maintenance (CMM) module is active for the tenant.
Raise PriorityRaises the maintenance priority of the matching work order.Only alerts of the Work Order function.

Email and Notification​

Required fields are shown in bold.

Field NameDescription
Body TemplateThe message template that is sent. The e-mail subject (or the notification title) is written inside the template itself, as on the e-mail templates screen; there is no separate subject field. The list shows this function's templates first, then the general templates and other functions' templates.
One-TimeWhen selected, the action runs only once for each record and recipient while the record meets the condition. Off by default.
Re-enableAvailable together with One-Time. When selected, the action can run again after the record stops meeting the condition and later meets it again.
RecipientsThe people who receive the message. See Recipients.

The template is filled with the matching record as it is when the message is prepared, in the same way as the e-mails of state notifications, so the same template fields can be used. Template content is managed with the message templates of the system; see System E-mails.

  • E-mail is sent to the e-mail address in the recipient's user profile, in the recipient's own language. A recipient without an e-mail address is skipped.
  • Notification appears in the recipient's notifications in the application. It is prepared in the system's default language.

Recipients​

The Recipients field opens the Select HR Object window with the Hierarchy, User, Role, Position, Organization Unit and User Group tabs.

  • User: The selected users receive the message.
  • Hierarchy: Fields of the matching record that hold a person (for example the assigned user or the creator). The person in that field of each record receives the message, so different records reach different people.

⚠️ Warning​

Alert messages are currently delivered only to users selected on the User tab and to people resolved from record fields on the Hierarchy tab. Roles, positions, organization units and user groups can be selected, but they are not expanded to their members and nobody receives the message through them.


Open Work Order​

Field NameDescription
Work Order TypeThe type of the work order to open. See Work Order Type.
Maintenance PriorityThe priority of the new work order. Optional. See Maintenance Priority.
Asset FieldWhere the matching record keeps its asset, for example AssetId, at most 256 characters. The work order is opened for that asset. Left empty, the work order is opened without an asset.
Work Order TitleThe title of the new work order, at most 512 characters. It may contain fields of the matching record, written as in the message templates, for example {{ title }} - automatic check.
Re-enableWhen selected, a new work order can be opened again after the record exits the condition and later enters it again.
  • The action runs once each time a record meets the condition (One-Time is always on), as the user who created the alert. The hint "Runs once each time a record meets the condition, as the alert's owner." is shown in the panel.
  • The work order is created like a work order created by that user, with its default state, number and so on. See Work Order.
  • The action is skipped when the alert's owner does not have the permission to create work orders, when the record no longer exists, when the Asset Field does not lead to an asset, or when the title becomes empty.
  • A work order opened by an alert never opens another work order, even if it matches an alert on work orders.

Raise Priority​

Field NameDescription
Maintenance PriorityThe priority the matching work order is raised to. The hint "Only on work order alerts. The priority is only raised, never lowered." is shown.
Re-enableWhen selected, the priority can be raised again after the work order exits the condition and later enters it again.
  • The action is offered only for alerts of the Work Order function, and runs on the work order that meets the condition.
  • Priorities are compared by their criticality score. If the work order already has the selected priority or a more critical one, nothing changes.
  • The action runs once each time a work order meets the condition, as the user who created the alert. It is skipped when that user does not have the permission to update work orders, or when the selected priority no longer exists.

Warnings and Error Messages​

  • Required Fields: "This field is required." for an empty Action Type, Body Template, Recipients (Email and Notification), Work Order Type and Work Order Title (Open Work Order) or Maintenance Priority (Raise Priority).
  • Open Work Order Without Type or Title: "A "create work order" action needs a work order type and a title."
  • Invalid Title Template: "The work order title template is not valid. Check that every expression in it is closed."
  • Raise Priority Without Priority: "A "raise priority" action needs the priority to raise to."
  • Raise Priority Outside Work Orders: "A "raise priority" action can only be used in an alert on work orders."

User Tips and Best Practices​

  • Use the Hierarchy Tab for Responsibilities: Sending to the assigned user or the creator of each record reaches the right person without maintaining recipient lists.
  • Keep Titles Recognizable: Add a fixed text to the work order title (for example "- automatic check") so that work orders opened by alerts are easy to identify.
  • Combine Actions: An alert can, for example, open a work order and e-mail the responsible person at the same time; add both actions to the same alert.