Skip to main content
Nintex Community Menu Bar
Question

Snippet code to check if filter condition is activated or not in model.

  • July 11, 2024
  • 1 reply
  • 5 views

Forum|alt.badge.img+3

Hi All,

we have a requirement to activate and deactivate filter condition on some status and if that filter condition is already activated then there is no need to activate it again and run model query, so is there any way to check if model’s filter condition is already activated or not in snippet code.

Regards,
Akanksha

1 reply

Clark_Cregg
Nintex Employee
Forum|alt.badge.img+5
  • Nintex Employee
  • July 11, 2024

Hello Akanksha,

How are you currently running through the actions you described above?

It seems like you could potentially use an action sequence with branch actions on the status value to determine if the condition should be activated or deactivated. I’m not sure what kind of setup you currently have, but I think you can get the desired results without writing additional code. 

Here is a link to our docs on branch actions: https://docs.skuid.com/latest/en/skuid/action-framework/action-list/actions-logic.html#branch


Thanks,
Clark