I need a “little” help with a project I’m working on.
I have the following data types in Bubble ;
garage , lead, bridgeGarageLeads.
A garage is a garage registered in my bubble app. :=)
A lead is a prospect who is looking to buy a car.
A bridgeGarageLeads is created when a garage contacts the lead. (This type has 2 fields , bridgeGarage type of Garage and bridgeLead type of Lead)
For every lead contacted by a garage bridgeGarageLeads is created. (if 4 garages contact the same lead there will 4 bridgeGarageLeads with the same Lead ID but different garage IDs)
Here is what I want to do (I can do this in bubble UI)
I need to create an API call to display the Leads belonging to a garage so I can show them in another platform.
I have been trying to do it, but I couldn’t figure out.
In bubble I solve the issue like this,
Repeating group type of bridgeGarageLeads with the constraint = current users Garage
Inside the repeating group I have a group in the cell and type of the content is Lead. Data souce = Current Cells bridgeGarageLead’s bridgeLead