[SalesForce] Can Many to Many relationship be achieved using lookup relationship

My question is… We normally create master-detail relationship to achieve many to many relationship. Instead of using master-detail relationship on junction object can i use lookup relationship to achieve same.

Best Answer

Yes you can.

A downside is that unlike when you use master-detail relationships, the junction object will not be automatically deleted when one or both of the objects it is relating are deleted. You can add your own logic to deal with that though.

Related Topic