Forum Academy Marketplace Showcase Pricing Features

How do you Trigger a custom event when the count of "on-shift" drivers in radius is >0

Hi All,

I’ve read the other threads relating to triggering a custom event when data changes but hasn’t addressed my query.

So, with an on-demand delivery service in mind…

A delivery job once submitted it sends out an SMS notifications to drivers within a coverage area, the issue that I have is that when there are no drivers on-shift within the coverage range I need to schedule the SMS to be sent later…eg; when Drivers on-shift within range >=1.

How can I use trigger a custom event such as send SMS when the count of drivers that meet a certain criteria >= 1, as oppose to just looking at a single data element for a single thing (record)?

much appreciated

regards