- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 07:19 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 07:47 AM - edited 12-16-2023 07:49 AM
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:
In a later condition, you can check whether the value of that variable equals "0" and react accordingly.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 07:47 AM - edited 12-16-2023 07:49 AM
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:
In a later condition, you can check whether the value of that variable equals "0" and react accordingly.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 09:16 AM
@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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 10:06 AM
Glad to help!