Hello, need a little help with what I believe is toddle logic.
I’m building a CRM page and pulling in data from two APIs — one for deals and one for vehicles (stored in Xano). Each deal can be linked to a vehicle using an ID field.
What I’m trying to do is this:
When someone’s viewing a vehicle card in the CRM, I want to automatically check if that vehicle appears in any of the deals. If it does, I want to pull in the info from the matching deal and display it alongside the vehicle. Kind of like showing deal context directly within the vehicle profile.
Right now in Toddle, I’m looping through the deals and comparing the vehicle ID to the current vehicle being viewed. I’ve been trying to make this work with a formula, but it’s not returning anything. Clearly I’m missing something 😅
Dropped a screenshot of what I’ve got so far. Just wondering what the best way is to structure this logic. Should I be filtering differently, or is there a better way to query it from Xano?