How check all values from vector exists in response?

Hi!

I have a saved vector from a request which I want to use to validate the response body from another request. A simple substring check would do.

How can I achieve that?

Example of what I want (sudo code that does not work)

Saved vector in variable “productIds”
(Vector(XX22, XX33))

`

http(“Some get http call”)
.get(url)
.foreach("${productIds}", “productId”)
{
check(substring("${productId}").exists)
}
`

Regards

Robert