Solved

FIQL Filtering - Not Equal

  • 22 April 2020
  • 1 reply
  • 1086 views

Badge +1

We make use of a lot of the FIQL filtering in our automation to pare down results from various REST calls. However, it seems that while filtering on things like category_name or category_value work just fine with an ==, they don’t seem to work with an !=.

Is there a way to do an inequality filter, specifically with v3 of the Prism Central API?

icon

Best answer by AntonioG 30 April 2020, 00:01

Hi etr.eric,

 

I consult with a dev guy, he told me you need to do an import in phyton:

 

from fiql_parser import parse_str_to_expression

 

Then :

 

if "string" in category_name

 

and

 

if "string" not in category_name

 

Must work well, please let me know if this helps.

 

Regs

Antonio

 

View original

This topic has been closed for comments

1 reply

Userlevel 2
Badge +4

Hi etr.eric,

 

I consult with a dev guy, he told me you need to do an import in phyton:

 

from fiql_parser import parse_str_to_expression

 

Then :

 

if "string" in category_name

 

and

 

if "string" not in category_name

 

Must work well, please let me know if this helps.

 

Regs

Antonio