Skip to content

Automations

Conditions

Which records an automation acts on. Combine conditions with and, or and not, nest them in groups, and compare dates with today instead of a fixed day.

For
EveryoneAdmins
Time
8 min

A condition decides which records the steps run for. It appears in three places, always with the same builder:

  • the card Only if, for A record is created, A record is changed and On a schedule,
  • the card Condition, for A condition holds, where the condition is the trigger itself,
  • the step If / else, under If the record, to send different records down different paths.

It is the same builder as in the dashboard tiles and the filters of the lists, so what you learn here works there too. Without a condition the automation runs for every record (Without a condition it runs for every record.). Without a data source there is nothing to check, and the card says so.

Click Condition and pick three things: the field (the fields of the data source), the comparison and the value. The comparisons depend on the kind of field. A field can offer fewer, when its source does not support a comparison on it.

FieldComparisons
Textcontains, does not contain, starts with, ends with, is, is not, is one of, is none of, is empty, is set
Numbergreater than, at least, is, is not, at most, less than, between, not between, is empty, is set
Datebefore, until, on, not on, from, after, between, not between, in the last, in the next, in the period, is empty, is set
Yes or nois
Choice (status, severity) and links to people or other recordsis, is not, is one of, is none of, is set, is empty

Where it fits, the row’s menu offers Compare with another field, to compare two fields of the same record with each other instead of with a fixed value.

With two or more conditions a line appears above them, such as When all of these conditions hold. The word in the middle is a choice.

ChoiceHolds when
allevery condition holds (“and”)
at least oneone or more hold (“or”)
nonenot a single one holds
not allat least one does not hold

Between two rows stands the word that joins them, and or or. Clicking it switches between the two.

To mix “and” with “or”, put the “or” part into a group. Group adds one, with its own choice. “The risk is open, and either its impact or its likelihood is at least 4” is a group inside the conditions:

Status is Offen and a group with at least one of: Auswirkung at least 4, Eintrittswahrscheinlichkeit at least 4
The outer level says all, the group says at least one. The heading of the card reads it back with brackets.

The menu at the end of each row (More actions for this condition) has:

  • Reverse: turns the condition into its opposite, “is” into “is not”.
  • Make it a group and, on a group, Dissolve group.
  • Duplicate, Move up, Move down and Move out of the group.

Rows and groups can also be dragged by their handle. When no more fit, the builder says No more conditions fit here.

A condition on a date can name a fixed day, or a number of days from today. For “every measure whose review is due within the next two weeks”, pick the date field, the comparison until, then days from today instead of fixed date, and enter 14. The builder shows what it means, = today + 14 days; a negative number counts back.

Erste Fälligkeit until today + 14 days and Status is not Überholt
Due within 14 days and not obsolete. The automation stores today + 14 days, not a date.

nexxus stores what you mean, “today plus 14 days”, not the date it was on the day you saved. Every run works it out again, in the tenant’s time zone. That is what makes a weekly report or a condition like “overdue” keep working week after week.

The periods work the same way: in the last and in the next so many days, weeks, months, quarters or years, and in the period such as this week, last month or next quarter.

TriggerChecked
A record is created, A record is changedwhen the run starts, a few seconds after the change, against the record as it is then
A condition holdsevery 5 minutes, against all records of the source
On a scheduleat each point in time, against all records of the source
If / elsewhen the step is reached, for each record of the run

The condition only sees what the person the automation runs as may read. Records outside that person’s rights never match.