Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Many-to-many relationships
Does any documentation exist that outlines best practices with many-to-many relationships?
Here is a specific example of a complication I'm facing:
I have a Course record and an Instructor record. Courses can have multiple Instructors, and Instructors can teach multiple Courses. Hence a many-to-many relationship. So I created a custom record called "M2M: Course - Instructor". This record represents a relationship between a Course and Instructor. It has a Course field to reference the Course, and an Instructor field to reference the Instructor.
Now I want to create a sublist on the Instructor record to list all the Courses they teach. I created a saved search on the "M2M: Course - Instructor" record, with an available filter of "Instructor". The Course field is the only field in the Results tab. Then I created a sublist on the Instructor record that references this saved search, and I gave it a label "Courses".