Flow Designer : Checking if value found in Arrary.String contains string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2022 06:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2022 07:27 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 03:03 AM
Flow Designer usually operates on records retrieved from ServiceNow tables. Not sure how the flow is setup and what is actually being compared. Usually, to test if a String value is contained in values from multiple records, "contains" is used.
However, the screenshot doesn't seems to be retrieved from a ServiceNow table.
To test if a string is included in an array, "includes" may be used in custom Action. Create an new Action with an array and string as input parameters. Add a "Script" step to test if an array includes a string. Return boolean True/False based on the result. Have an if statement based on the result of the Action.
example:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 03:25 PM
I'm returning an array from an action I created, but I guess I can just check what I need inside the action itself.