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
Filip Poverud 1-9Filip Poverud 1-9 

Link Objects through Records

Hi all.
I'm trying to create relationships the following wat:

Account - Partners
For this purpose I have created a custom object Partners and a junction object AccountPartner with a MasterDetail relationship both ways.

I'm able to add Partners to Accounts, and from the Partner object I can see all Accounts related to that Partner. A good working M:M model.

Now I want to introduce Partner Types.

Partner Types
For this purpose I have created a custom object PartnerType with multiple Record Types, one for each Partner Type.
I have then created a custom object for each Partner Type.
This is because one Partner may be multiple Types.

PartnerType has Lookup relations to each Type Object so I'm able to create a link from the Partner Object to each individual Type Object.

But I want to show it like this:

Account (Page)
Partners (Related List)
Record: Partner A - Partner Type A - Link to A object
Record: Partner A - Partner Type B - Link to B object
Record: Partner B - Partner Type A - Link to A object
...

I'm sure the key is how I should relate Partners through PartnerTypes with the individual objects related to each RecordType in PartnerTypes.

Thank you in advance.
 
Stephan braunnStephan braunn
Hi, you can check: https://help.salesforce.com/apex/HTViewHelpDoc?id=overview_of_custom_object_relationships.htm&language=en (https://help.salesforce.com/apex/HTViewHelpDoc?id=overview_of_custom_object_relationships.htm&language=en)

Regards: https://www.essaycorp.co.uk/nursing-essay-help/