Trying to evaluate if one list is contained in another

I’ve got an Option Set called “sustainable attributes”, then I’ve got a data type called “Products” and it has a field for “sustainable attributes” and it’s a list.
Screen Shot 2020-05-06 at 8.40.01 PM

Then I’ve got a custom state that is a list of selected sustainable attributes:
Screen Shot 2020-05-06 at 8.40.43 PM

I’m trying to Do A Search For… Products where the “sustainable attributes” of the product are in the “Selected Sustainable Attributes”, but I’m getting errors. As far as I can tell, I am comparing two lists, so I should be ok, but obviously it’s not working!
Screen Shot 2020-05-06 at 8.43.10 PM Screen Shot 2020-05-06 at 8.44.52 PM

Any documentation on seeing if one list is contained in another? Can I use the Option Set for this?

Try and advanced filter … “Contains List”…

image

Bear in mind it is direction sensitive, so A may contain B but B may not contain A.

3 Likes

It took me a few minutes to find Advanced Filter, but it’s what I was looking for. I knew it must be somewhere!

–> After doing the regular search, you add the :filter to the “Do a search” part.

This topic was automatically closed after 70 days. New replies are no longer allowed.