I managed to solve it with the following workflow:

  1. Database trigger event: When TypeA is midified
  2. Schedule API Workflow on a list
  • List to run on: Do search for: TypeB AND TypeB:filtered (advanced): TypeB.center distance from TypeA.location < ThisTypeB.max_distance
  • parameters to pass to the next workflow: TypeA, ThisTypeB
  1. Next workflow simply creates TypeC based on the received parameters

Man, was that a journey!

@nico.dicagno I think this search query isn’t heavy, what do you think? I expect my database to be relatively small so I think the search shouldn’t cause any workload/performance problems.