function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nidhi PathariaNidhi Patharia 

Question about Junction Object

Hi,

I have a question regarding Junction Objects. How can I pull the data to show on the master object. For instance:
I have the Contact Object and a custom Object Department. They both have a many to many relationship achieved  with a junction object Department_Contact.

Every Contact can be associated to multiple departments with a condition of 1 primary department. I want to show this one primary department on the contact page layout (not as a related list)  and search layout. How can I achieve this?