Forum Academy Marketplace Showcase Pricing Features

Searching against a list of Things

Hi Team,

I have a list of Vault (Things) associated to a User, a Vault has an ‘Address’ field.

I want to be able to display an icon only when a Task (Thing) is unread and when its ‘Address’ field value is within x miles/kms from any of the Vaults associated with User.

I am trying to pull a list of Tasks that meet the criteria and then :count them, if >0 then show icon…but I am getting stuck at this stage…

it works perfect if I only specify Read = no, but that’s not what I want, I need to only show when a Task is also within the range of any Vault managed by that User.