How do I build an expression for a workflow automation in Freshservice that if a ticket.count is equal or greater than 5 it creates a problem
Page 1 / 1
Love an interesting question!
Expression
if ( length('{{P1.child_ids_number | replace: " ", ""}}') - length('{{P1.child_ids_number | replace: " ", "" | replace: "," , ""}}') == 4, 'Yes', 'No')
So we are counting the number of , in the array to indicate how many numbers are in it.

Thank you for the help, I will build this out next week and let you know how it goes.
Have a great weekend
Join the Community
Already have an account? Login.
Sign in to the Community
No account yet? Create an account.
Social Login
Login for Freshworks Employees Login with LinkedInor sign up below
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.