To create a trigger, you must have an Administrator role. From the product drop-down menu, go to Admin Center > Objects and rules > Business rules > Triggers.
There, you will see the existing triggers and can easily create a new trigger.
Click Create trigger to open the creation form
Assign it a name and, if you wish, a description; this is optional. Select the category under which it will be saved.
Adding conditions
We will then begin creating the conditions that will cause the trigger to activate. As you can see, you have two areas in which to add conditions: ALL and ANY.
Let’s follow an example: let’s say we are going to create a trigger to assign all tickets from a certain organization that are also urgent or high priority to a particular agent group.
In the first section, we will add all the conditions that our tickets must meet for the trigger to act. We click Add condition and select whatever we need from the drop-down menus.
In this case, we will add Organization is NAME
In the second section, we will add the conditions that the tickets must meet, keeping in mind that not all of the listed conditions must be met in this case: it is sufficient for one or the other to apply. We click Add condition and select the data.
We could have added Ticket > Priority greater than High and used only one condition, but we preferred to do it this way for this example.
There is something important to keep in mind.... that the trigger may run in a loop. To prevent this, we need to add one more condition. Can you spot the error? We are evaluating that the ticket’s organization is X. The organization will always be that one every time the ticket is updated. This would cause the trigger to run in a loop unless another condition is added to the first section. Which one? We can use Ticket > Ticket status is New, which will run only when a ticket is created as new. Once it is no longer new, the trigger will not fire again.
Adding actions
Now we will fill in the Actions. Click Add action and fill in the fields.
You can see the complete process in this video
Comments
0 comments
Please sign in to leave a comment.