How to prevent triggering an action when regex matches NOT 12?

DavidDavid BrusselsCommunity Member Qubie ✭

How to prevent triggering an action when regex matches NOT 12?

Hello,

I would like to prevent triggering an action (email) every time a phone number starts by 12.

I use embedded data PhoneNumber matches regex ^(?!12).* but I keep receiving the triggered email => unexpected behaviour
If phone number starts by 11, I well receive the triggered email => expected behaviour

Any idea why "Not starting by 12" which is ^(?!12).* doesn't prevent the trigger?

I'm looking forward for your support :smile:

Best Answer

Answers

  • DavidDavid BrusselsCommunity Member Qubie ✭

    Hi @NiC

    Thanks a lot for checking it!

    I found the issue :wink: It didn't work because I was using this condition multiple times under the condition [ANY].

    Indeed, if phone number starts by 12 or 38, no trigger should be done. And if it starts by 11, email should be triggered. To make it work I have to add a new condition set [ALL] as on the picture:

    Thanks a lot for your help, it reassured me I was on the right direction :blush:

Sign In to Comment