How can we Filter Out Requested Items from Flow Designer for Cat Items which contain no Variables?

WazzaJC
Tera Expert

How can we Filter Out Requested Items from Flow Designer for Cat Items which contain no Variables?

 

Hi ServiceNow Community,

 

Is there a simple way/solution, to apply in an If / condition statement for example, within a Flow (Flow Designer), where we can filter out any Requested Items, for Catalog Items that do not contain Cat Item Variables?

 

In my Flow, I want to add a step whereby Catalog Tasks will only be triggered, for Items which have Variables on them and not trigger Tasks, for other items which do not contain Variables.

 

Please kindly let me know if this is possible and the steps/functionality to configure this within a Flow.

 

I would greatly appreciate any help/guidance in this regards, many thanks.

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @WazzaJC 

one approach is to store the number of variables in a Flow variable of type Integer ("Number of Variables" in below screenshot) and then to assign the number of available variables to that variable via an inline script:

 

MaikSkoddow_0-1702741615588.png

In a later condition, you can check whether the value of that variable equals "0" and react accordingly.

Maik

 

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @WazzaJC 

one approach is to store the number of variables in a Flow variable of type Integer ("Number of Variables" in below screenshot) and then to assign the number of available variables to that variable via an inline script:

 

MaikSkoddow_0-1702741615588.png

In a later condition, you can check whether the value of that variable equals "0" and react accordingly.

Maik

 

@Maik Skoddow  Hi Maik. Thanks very much, this is excellent, I have configured as per your direction and it works perfectly as a solution for me ! I greatly appreciate your help kind sir, thanks for coming back to me 🙂

Glad to help!