I would like to create a gallery where the items of the gallery are a list of sales reps that have an associated account visit for the selected date. I have an app with the following Tables and relationships.
What I've been trying to do is apply a filter to the visits table and save it into a new table. Then join this new table with the customers and salesRep tables. With the new collection use the distinct command to list the sales reps in the gallery. Once the gallery is made, pass the generated joined table to the next screen. The end goal is to be able to send an email to each sales Rep recapping the information from the visits table.
salesRep - 1 to many relationship with customers
customers - 1 to many relationship with visits
visits
Sales Rep

customers

Visits
