Case Sensative Triggers

Hi,

We have made a trigger that detects if any ticket raised has the word virus in it and automatically gives it an urgent priority.

HOWEVER the trigger is case sensitive so at the moment our trigger is this:

Is there a way to make it not case sensitive easily or do we need to add everyway virus could be written out separately e.g. 'Virus', 'VIRUS', 'ViRuS' etc?

You need to use match() function (check its description in documentation). It returns true if the first argument is an occurrence of a regular expression contained in the second one. For this exact case, the condition will look like:

The function with arguments: match([Ticket.Title], '(?i).*(virus)+.*')

[Ticket.Title] - reference to the title of a ticket.
(?i).*(virus)+.* - regular expression (should be enclosed in single quotes).
(?i) - case insensitivity flag.
.* - any character occurred zero or more times.
(virus)+ - sequence of characters occurred one or more times.

And here are sample results of checking the condition (from trigger logs):

22.04.2020, 09:56:42 started on ticket #2

Resolved condition values: {
    "Ticket.Title": "This is a sample ticket (viRus) assigned to you #2",
    "match": "True"
}

Condition result: true

Actions runs: 


22.04.2020, 09:56:22 started on ticket #1

Resolved condition values: {
    "Ticket.Title": "This is a sample ticket assigned to you #1",
    "match": "False"
}

Condition result: false
2 Likes

Thanks! This works perfectly!

Hey Evgeniy,

We have encountered a similar problem recently in which some people are capitalizing certain letters of our email address and thus our triggers are not recognizing it.

I tried match([Ticket.HelpDeskMailbox], '(?i).(support@test.com)+.') but it didn't work. The logs are listed below:
3/26/2025, 4:59:42 PM started on ticket #TicketID=7726

Correlation id: ce6ec1f6-86a0-4304-9e4a-30451fe36b38

Resolved condition values: null

Condition result: false

Exception: Function not found. Name: match

Do you have a solution for our problem? Thanks in advance!

Hello Jake! The 'match' is an operator and not a function. You need to configure the trigger condition this way:

(?i)(support@test.com)+

1 Like

That worked perfectly, thank you.