how to go through list in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2023 05:47 AM
Hi,
I have a variable 'user' which is list on my catalog and in the flow designer I want to check if the 'requested_by' is there in the list. How can I do it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2023 05:51 AM
Hi @Akki1 ,
Please refer the post, it might be helpful:
https://www.servicenow.com/community/developer-articles/access-ritm-variables-using-flow-designer/ta...
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2023 06:47 AM
Hi Akki1,
I'm afraid OOTB there is no functionality for this. You can achieve this in flow Designer getting the variables from catalog (this action is OOTB) and with a custom action. Inputs of the custom action must be the variables that you want to compare and inside with simple script you can get what you want. I've created this simple flow:
Inside Script Step you loop through the list checking if user appears or not, then returns as Output 1 or 0.
☆ Community Rising Star 22, 23 & 24 ☆