Lookup in JSON object

Hi, I struggle to lookup in JSON object. Any ideas how to solve this in server side GTM container?

Details:
I use HTTP Lookup to get list of domains from my ABM tool - the variable is a simple JSON [“domain 1”, “domain 2”, …]

I want to lookup if a domain user uses is in the JSON list or not.

I face the issue that regex lookup is not accepting variables (in this case variable {{test}}).
The normal looklup varibale meets only when it matches.

and a trigger using “contains” rule also doesn’t work.
image

Any recommendations, please?

Thank you

Tomas

Maybe this variable will help you: Tag Manager Template Gallery

If not, then the only option is to create a temlpate for your custom variable that will have the logic you need.
There are no JS variables on the server container, so creating a custom one is the only option.

1 Like

Thank you, Alex. It seems to work :slight_smile: