For a model with multiple records, show all the Children related

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I've got a model of several parent records - say it is Accounts and there are 5 of them returned in my Account model.

Now I want to populate a 2nd model that shows all related Contacts to these 5 accounts.

How can I pass the Accounts (5 different IDs) in the Accounts model to be the condition on my Contacts model?
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Choose the "IN" operator in your Contacts Model condition. 

Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
Doh!  I knew it was something easy.  Thanks!