I’m trying to filter on an array to control flow through a router
My inputs is HTML email from Gmail, and I have three different URL structures that I want to detect if they are present in the HTML.
https://domain_1.com/standard_path/unique_payload
https://domain_2.com/standard_path/unique_payload
https://domain_3.com/standard_path/unique_payload
I’m trying to match on the root URLs - omitting the ‘unique_payload’ part
These URLs will always be unique to any email - ie there will never be a match on more than one URL structure for any email
If any of these 3 URL structures exists, then I want to go to ‘Route A’ where the matched URL will be written to an Airtable field.
If no matching URL exists in the email HTML body, then I want the flow to take ‘Route B’ where other stuff happens
So far I’ve used the ‘Text Parser - Get elements from HTML’ module to identify all links in the email, followed by ‘Array Aggregator’ to create an array of all the links in the message. This seems to work so far.
Now I’m trying to implement a router with a filter on that array so that if a match is found with any of my 3 URL structures, it will take Route A, and the Fallback filter to take Route B.
I’ve tried using ‘Array operators - Contains… root URL’ in my ‘Route A’ filter, but cannot get this to match
How do I design my filter to match data in the array?