I am trying to compare one array from a previous node, search and see if a term is listed inside one of the items in an array while still using wildcards.
I am trying to find one of a few strings in this array. As an example lets say I wanted to find “apple.com”, “outlook.com”, “Frontend”, “bacon-bits”. I want the If node to trigger positive because the term “outlook.com” is found at least once. The list of search terms I am looking for will grow so I want to be able to have one node that can look to see if any of the contents of ArrayB exist in ArrayA.
"Received":
[
"from SJ.namprd17.prod.outlook.com (2603::392::9) by SJ.namprd7.prod.outlook.com with HTTPS; Tue, 30 Jul 2024 20:27:11 +0000",
"from DM.namprd02.prod.outlook.com (2603::1f4::23) by SJ.namprd7.prod.outlook.com (2603::a03:392::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.7807.29; Tue, 30 Jul 2024 20:27:08 +0000",
"from DS.namprd01.prod.outlook.com (2603:::cafe::4b) by DM.outlook.office365.com (2603::5:1f4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.7784.34 via Frontend Transport; Tue, 30 Jul 2024 20:27:07 +0000",
]
you can do it with a more complex filter. For each whitelisted server it will join all Received entries and checks that the whitelisted server string is a substring of the joined Received entries. There is a limitation that you can’t use a comma delimiter for join method if the whitelist array contains anything with commas.