Magidoc

Reaction
Object

A Reaction represents an automated response to an event within an organization. It defines the criteria for triggering the reaction, the actions to be taken, and the associated organization.

Fields

#

id

ID !
Non-null

The unique identifier for the reaction.

name

Non-null

The name of the reaction. This should be a descriptive name that helps identify the reaction's purpose.

description

An optional description providing more details about the reaction's purpose and functionality.

triggers

Non-null

A list of triggers that initiate the reaction. A reaction must have at least one trigger.

conditions

Optional conditions that must be met for the reaction to be triggered. This field allows for complex logic to be defined using a custom scalar type 'ReactionConditionScalar'.

logs

Non-null

The activity logs created by this reaction's actions

priority

The priority of the reaction. Reactions with higher priority are executed before reactions with lower priority if they are triggered by the same event.

enabled

Indicates whether the reaction is enabled or disabled. Disabled reactions will not be executed.

event

Non-null

The event that triggers the reaction.

createdAt

Non-null

The date and time when the reaction was created.

updatedAt

Non-null

The date and time when the reaction was last updated.

Usages

#

References

#