[SalesForce] Using Junction object to display related list

Problem: I need to create a way to view two related fields on a given record between two different custom objects. I have looked up junction objects and it seems that this will be the best solution. So far I have created the junction object (PA by Proc Code) with a master-detail relationship between the two objects (PA and Proc Code). In a specific PA record, the junction object shows up in the related lists section, but will not display data. I am stuck and do not know how to go further.

I am still very new to Salesforce, so any help would be appreciated!

Best Answer

If I understand you correctly, you have two objects, PA and Proc Code, that are in a many-to-many relationship with one another. On one or both of these objects, you would like to show a Related List of the other and include on that Related List specific fields from the other object.

If that's the case, all you need to do is, on the Page Layout for your primary object (PA or Proc), edit the Related List for the junction object. You should see fields from both parent objects available for selection: just pick the ones you need.

(Screenshot from an NPSP page layout).

Screenshot from NPSP

Related Topic