Reply
Regular Contributor
abi060988
Posts: 28

Junction object for two standard objects.

i) Whether i can able to create junction object for opportunity and user objects?

 

ii) Is there a way to select two values in the lookup?

 

Kindly advice.  

Trusted Contributor
SrikanthKuruva
Posts: 170

Re: Junction object for two standard objects.

i) You cannot create a junction object for  opp and usr objects because you cannot create a master-detail field on junction object to User object.

 

ii) No you cannot select 2 values in the lookup.

Moderator
Ankit_Arora
Posts: 1,671

Re: Junction object for two standard objects.

I agree with Srikanth, and it is not possible to create master detail relationship between any custom object and user. But you can create master detail relationship between Opportunity and any custom object. After that you can create a lookup relationship of user on custom object. Creating these relationship will also resolves your problem of having a many-to-many relationship between User and Opportunity.

 

If it not resolves your problem then let me know the precise requirement so I can suggest more accurately.

 

P.S : You can not select two values in lookup.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Force.com MVP
Certified Developer | Twitter

Latest Blog Posts : Integrating Google Maps in Salesforce AND Displaying Role Hierarchy on Visualforce Page - Tree View


Answers/Suggestions are my own.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.