Hello,
i'm trying to use Regex in transition conditions, but i'm unable to get it work.
I have RemoteDB dynamicfield, that contains data. I specify number like 999006 and it fetch me some data, like this:
Terminal: 999006
Merchant: 34563456345
Lokalizacja: 54634563456
Siec: LEW <- i want to match this with Regex
This is my Regex condition: qr{Siec: LEW}xms also tried qr{(Siec: LEW)}xms
I looked at the history, and i saw that my RemoteDB dynamic field value is set to 999006. Maybe there's problem.
Thanks,
Patric
Transition Regex
Moderator: crythias
Re: Transition Regex
Hey there, does anyone know how to make legit regex in transition conditions?
Please help. I was looking everywhere... and tried everything. Maybe i missed something or i just don't know something about
regex conditions.
Best regards,
Patric
Please help. I was looking everywhere... and tried everything. Maybe i missed something or i just don't know something about
regex conditions.
Best regards,
Patric
-
- Znuny expert
- Posts: 167
- Joined: 26 Nov 2014, 20:34
- Znuny Version: 6.3.4
- Real Name: Samuel Casimiro
- Company: Câmara dos Deputados
- Contact:
Re: Transition Regex
Hi,
A regex will only work for the recorded field value. If the field value is 999006 the regex above will never match.
I think a solution would be ajust you dynamic field setting in order to record another key with the value you want to evaluate. Maybe a composed key.
Best regards!
A regex will only work for the recorded field value. If the field value is 999006 the regex above will never match.
I think a solution would be ajust you dynamic field setting in order to record another key with the value you want to evaluate. Maybe a composed key.
Best regards!
Samuel
Znuny 6.3.4 | OTRS 5.0.17
OS: Debian 11 | CentOS 6.5
Database: Postgres | Oracle 12.1
Number of agents: 450 | Number of customers: 20000 | Number of CIs: 30000
Znuny 6.3.4 | OTRS 5.0.17
OS: Debian 11 | CentOS 6.5
Database: Postgres | Oracle 12.1
Number of agents: 450 | Number of customers: 20000 | Number of CIs: 30000
Re: Transition Regex
Thank you for your reply!
I think based on your message, a good way to get this work, would be another dynamic field(invisible), that will store the true value of that RemoteDB, this:
Terminal: 999006
Merchant: 34563456345
Lokalizacja: 54634563456
Siec: LEW
And then it should be good to go .
I will try this out now. I'll come back with some info about it.
Thanks again!
I think based on your message, a good way to get this work, would be another dynamic field(invisible), that will store the true value of that RemoteDB, this:
Terminal: 999006
Merchant: 34563456345
Lokalizacja: 54634563456
Siec: LEW
And then it should be good to go .
I will try this out now. I'll come back with some info about it.
Thanks again!