+ Start a Discussion
PavanReddyPavanReddy 

How to achieve primarkey/foreign key in salesforce?

How to achieve primarkey/foreign key in salesforce?

Scott_VSScott_VS

Every record in Salesforce has a .Id field that serves as the primary key for that object. The id is created when the record is inserted.

 

To establish a foreign key, create a Lookup or a Master-Detail relationship from one object to another. This field is the foreign key, and will contain the .id of the of record it is linking to.

kitty1.392524346062729E12kitty1.392524346062729E12
what is foreign key