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
ipsita19861.2880751705180098E1ipsita19861.2880751705180098E1 

database

Hi,

  The Force.com platform supports the following relationship types .Select all which apply

  • Self
  •  Lookup
  •  Master Detail
  •  Many to Many
  •  Many to All
  • One to One
  • One to all
  • Validation Rules

can anybody please help me get the exact answer for this.

 

 

Thank u.

jhurstjhurst

Self

You can create a relationship from Object A to Object A, but not Record A to Record A.  So Custom_Object__c can have a lookup field to Custom_Object__c, but if you create Record 1, the custom field cannot point to Record 1


Lookup

Yes.  This is a standard field Type.


Master Detail

Yes.  This is a standard field Type


Many to Many

Yes.  This is done with a junction object (see the online help)


Many to All

Not though a standard field type.  You could do this through a junction object, though it would require some code logic (such as Apex Triggers).  The amount of connections that would be created for this would be high, so it may not be advisable.


One to One

Not though a standard field type.  You could do this, but it would require custom code to enforce the single 1:1 relationship.  It would be a junction object that had logic to enforce the single connection.

 

One to all

Not though a standard field type.  This would be similar to Many to All and would require careful consideration.

 

Validation Rules

Yes.

 

Thanks

Jay