NAC Workflows - Is it possible to get more than 10 conditions for a Run If true action
Hello all,
I am trying to add 15 “or” conditions for a Run If true action in a NAC Workflow. However, once I enter the 10th condition the Add condition button stops appearing so I’m not allowed to add any more conditions. Does anyone know if 10 is the maximum number of conditions that can be added to a Run If True action? If not, does anyone know how to configure the action to allow me to enter more than 10 conditions?
Page 1 / 1
Hi @dhodges1015
I believe that is the limit of conditions on a single run if, but there are a number of ways you can either alter the logic or use other actions like the state machine.
Are you able to describe the kind of logic you want to validate? Just an example of the type of data you are assessing and the success / fail criteria would be great!
based on that I can recommend the most appropriate actions for you.
Jake
Jake,
So there is a Choice field in a SPO list that has about 20 options in it; only one option can be selected. But if 15 out of those 20 options is selected a task needs to be assigned to one person; the other 5 choices don’t require a task. So I was trying to do a Run if to check to see if any of those 15 options was selected. The choices are the last name only of doctors the user can choose from.
Let me know if you need any more info. Thanks!
David
@dhodges1015
So for the above you have a few options like Jake mentioned. I’d probably do this in the reverse of how you had it originally set up and do something along the lines of Run If:
Choice is filled
AND Choice Is Not equal to (#1 of 5 choices that don’t require task)
AND Choice Is Not equal to (#2 of 5...)
etc.
That’s only 6 total conditions overall. The other options you could use are things like using regex to check a match of the choices (more complex in this case), putting in multiple run ifs to accommodate the additional conditions, etc.
Hi @dhodges1015,
@brent_read is correct you should be able to achieve the logic you need, it would seem the using the regex match would work best:
Any options you want to return true separate them by a pipe in the regex expression, in this example I want to match Submarine, Plane or Boat.
I have a variable containing options by default being Car, Boat and Train
If i run this workflow it will match as boat is there.
If I change the Run if option to remove Boat then it will stop matching: