Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom object called 'Events'. I would like to create a relationship that allows Event records to be related to other Event records. Is this possible using standard customisation?

share|improve this question
up vote 1 down vote accepted


Just add a lookup field on the event__c object to lookup to itself.

share|improve this answer
Is there anyway to add multiple Event records to an Event record? A lookup relationship only allows the user to select one record. – Clehan1 Aug 24 '14 at 15:04
You would have to create a junction object with a master detail to Event and a lookup to event in order to be able to relate multiple objects to the same object type – Eric Aug 24 '14 at 20:32

To relate multiple event objects, you need to create a new object called something like EventRelationship. You then create two master-detail relationships on that object to Event - if the relationship is directional you could call these From and To. (By making the relationships master-detail, the relationship object is automatically deleted if either of the Event objects are deleted.)

You can then add EventRelationship objects as a related list to the Event layout, showing either the "From" or the "To" or both. And the "New" buttons allow you to wire up new relationships.

(Salesforce counts any SObject row as using 2k bytes of storage space even though you might imaging a simple relationship object would only use a few tens of bytes; only an issue if you have a large number of relationship objects.)

share|improve this answer
Have you tried your solution .I dont think we can have master detail on any object to event – Mohith Shrivastava Aug 24 '14 at 15:36
@MohithShrivastava The question says its a custom object Event; are you thinking of the standard Event object? – Keith C Aug 24 '14 at 15:56
cool.Should work if custom object . – Mohith Shrivastava Aug 24 '14 at 17:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.