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
kingkhangkingkhang 

Dynamic adding of lookup fields?

Hi,

 

I have a custom object A that has a lookup relationship with another custom object B. Is it possible that once I filled up the reference to object B, the form automaticallys add another lookup field to the same custom object B so that I can have more than one look up?

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
Leon MorockiLeon Morocki

You would need to create a junction object to join both objects in a many-to-many relationship:

 

https://login.salesforce.com/help/doc/user_ed.jsp?section=help&target=relationships_manytomany.htm&loc=help&hash=JOJunctionObject

All Answers

Leon MorockiLeon Morocki

You would need to create a junction object to join both objects in a many-to-many relationship:

 

https://login.salesforce.com/help/doc/user_ed.jsp?section=help&target=relationships_manytomany.htm&loc=help&hash=JOJunctionObject

This was selected as the best answer
kingkhangkingkhang

Thanks for your help! (: