Hi to all,
i have created a group with 3 contact:
Group:Contact:OR(OPEN, CLOSED) contatti_uscita “Contatti [%d OPEN]”
when i add it in sitemap, i see how many contact of this group are opened, but i don’t understand how i can access to this information in rules. How i can use it in a if? Ho i can do the below?
if(contatti_uscita == '3'){
//do this
}
Dibbler42
(Thomas Bail)
November 2, 2019, 5:31pm
2
I am not sure, but you should try
if((contatti_uscita.state as DecimalType) == 3){
//do this
}
Ando how about AND group? I have this:
Group:Contact:AND(OPEN, CLOSED) test_uscita “Contatti [%d OPEN]”
why below rules not work?
if(test_uscita.state == "OPEN"){
//do this?
}
i have tried with OPEN without quote, but it not work…
vzorglub
(Vincent Regaud)
November 2, 2019, 9:09pm
5
Add some logging:
logInfo("TEST", test_uscita.state.toString)
if(test_uscita.state == OPEN) {
//do this?
}
1 Like
vzorglub
(Vincent Regaud)
November 10, 2019, 7:11pm
7
Please tick the solution, thanks
I have signed in the post. The solution Is writer from Dibbler42